search for: signup_notif

Displaying 9 results from an estimated 9 matches for "signup_notif".

2006 Mar 18
0
implicit template naming for multipart/alternative emails
...ails for a while now and used the recipe from the new recipes book on using implicit file names for multipart/alternative messages. This seems to have recently broke. I''ve named by templates according to the book and the docs... # for example, if the following templates existed: # * signup_notification.text.plain.rhtml # * signup_notification.text.html.rhtml # * signup_notification.text.xml.rxml # * signup_notification.text.x-yaml.rhtml I''ve gone through the code and found that the rhtml part of the file is not appended to the template name due to existing .''s in...
2007 Dec 08
6
Rails 2.0 ActionMailer breaks my redmine render_message
I am using ''redmine'' (v 0.6) as my major project manager, seems running fine w Rails 2.0 (slight modifs for paginations..) but I am stuck with a major error when sending a confirmation email : mailer.rb class Mailer < ActionMailer::Base .... # Renders a message with the corresponding layout def render_message(method_name, body) layout =
2007 Dec 20
4
Ruby on Rails mailer
Today I made a first attempt to make use of ruby mailer. A volunteer fills out a form and the information is then sent to an administrator. I generated a mailer called notifier and added the following: class Notifier < ActionMailer::Base def volunteer_signup(volunteer, sent_at = Time.now) @subject = ''A new volunteer has signed up'' @body = { :title =>
2005 Nov 17
7
render :partial in mail template
Hi, Is it possible to render a partial template from within a mail template? I get the following error undefined method `controller_path'' for SupportMailer:Class Extracted source (around line #8): 5: 6: <%= @url %> 7: 8: <%= render_partial ''sig_admin'' %> Jeroen
2007 Feb 16
4
Auto detect URL for ActionMailer?
...l that is mailed to the client? (I don''t want to have to change it every time the hostname is changed - I''d like the application to auto detect what the host is - whether it''s localhost:3000 or my own website... example: class UserNotifier < ActionMailer::Base def signup_notification(user) setup_email(user) @subject += ''Please activate your new account'' @body[:url] = "http://localhost:3000/account/activate/#{user.activation_code}" end I think this has been answered on the forum already, but from the answers I could find, I s...
2006 Apr 16
2
newbie actionmailer question
I''m trying to get my app to send an authentication email (via the authenticated_as plugin) I think the authenticated_as code is ok, but it''s failing when it tries to send a mail. getaddrinfo: Name or service not known In environment.rb I set up the code for my mail server: # Include your application configuration below ActionMailer::Base.server_settings = { :address
2009 Mar 25
1
I18n + ActionMailer = conflict ?
Hi there, can anybody tell me why I get the error message: "undefined method ''t'' for #<Mailer:0xb6d501e0>" ... when I call the following Mailer? ================================= class Mailer < ActionMailer::Base def signup_notification(user) @recipients = "#{user.email}" @from = APP_CONFIG[''mail''][''sender''] @subject = "#{APP_CONFIG[''settings''][''name'']} - " @subject += "#{ t(''.activate_ne...
2009 Jun 15
1
NoMethodError: undefined method `password_reset_instructions' for UserNotifier:Class
...ng this? NoMethodError: undefined method `password_reset_instructions'' for UserNotifier:Class from /Library/Ruby/Gems/1.8/gems/actionmailer-2.3.2/lib/action_mailer/ base.rb:400:in `method_missing'' *** app/models/user_notifier.rb class UserNotifier < ActionMailer::Base def signup_notification(user) setup user subject ''Your new account'' body :url => account_url end def password_reset_instructions(user) setup user subject "Password Reset Instructions" body :edit_password_reset_url => edit_password_reset_url (user.perish...
2007 Aug 30
8
experimental rails story adapter in trunk
For those of you interested in getting a jump on learning about and using the new Story Runner in a Rails app, I''ve added an experimental Rails-Story adapter to trunk. You can see how to use it here: http://pastie.caboo.se/92320 This is PURELY EXPERIMENTAL, however it actually works and will likely not change much in the way that it does work. Happy hacking! David