similar to: I18n + ActionMailer = conflict ?

Displaying 20 results from an estimated 6000 matches similar to: "I18n + ActionMailer = conflict ?"

2007 Feb 16
4
Auto detect URL for ActionMailer?
Hi, how can I call the url in an actionMailer definition - so that it automatically detects what the rails application server is and puts it in the url 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:
2007 Aug 07
0
Edge Rails and ActionMailer problem (Bad file descriptor)
Hi, I have just updated my rails app to use edge rails, however whenever I attempt to send an email using action mailer, I gain the following error, any suggestions t whats going wrong? Bad file descriptor - connect(2) I am using the following settings ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :address =>
2005 Mar 29
0
ActionMailer tmail/quoting.rb problem
Hi, Why did you allow this incompatibility? ;) * fixtures/notifications/signup: _foo @expected.body = read_fixture(''signup'') p @expected.body #=> " foo\n" # because text.gsub(/_/," ") If you enhance TMail::Mail#body like this, I want you to convert mail.body code in render_body. My mailer code now: # topic is a ActiveRecord instance. topic
2009 Jun 15
1
NoMethodError: undefined method `password_reset_instructions' for UserNotifier:Class
Any ideas what would be causing 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
2007 May 29
0
specs for ActionMailer
Hi, Email notifications are an important part of my app and I would like to spec them. Here''s what I have going so far. It seems to work. I''d appreciate comments/suggestions. Rails script/generate mailer produces tests for the email contents etc. I''ve started by manually converting the generated unit tests to rspec, and then changing/adding examples as I
2006 Mar 09
1
ActionMailer Question -- can''t find email templates
I have a PageController that displays a form. The form is just straight HTML, I only used the form helpers for the form tag as so: -- <%= form_tag({:action => :send_request}, {:method=>:post, :name=>''childsplay''})%> -- In my page controller I have this: -- def send_request email = InfoMailer::deliver_sendrequest(params) end --- in my action mailer class I
2006 May 05
1
ActionMailer with attachments, body is blank
I am trying to use the Rails Recipe for sending emails with attachments. However, when I add an attachment, my body fails to render. The resulting email has the attachment, but is blank otherwise. In the book, it mentions that this is "broken" in rails 1.0 and to upgrade to a newer version or edge rails. Well, I am running on 1.1.2 and it''s still happening. When I look
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 =>
2007 Nov 11
0
ActionMailer Difficulties
I''m using ActionMailer in test mode (so, in the config file I have config.action_mailer.delivery_method = :test ) I have my mailer set up as such... def confirm(message, sending_user, user) @subject = "You have a message from #{sending_user.login}" @body["message"] = message @body["user"] = user @body["sender"] = sending_user
2009 Jul 30
0
Problem with implicit multipart emails using ActionMailer in Rails 2.3.3
With earlier versions of Rails ActionMailer used to implicitly send multipart (text/plain and text/html) email messages for me, but it looks like now it''s sending two text/plain parts. Simplified details: Here''s my model: class Notifications < ActionMailer::Base def confirmation(sent_at = Time.now) @subject = ''Thank you for registering'' @body
2005 Mar 18
1
newbie question on ActionMailer
Hi, I normally try to really figure things out before asking a stupid question but I''m tight on time and the stack trace indicates a pretty low-level problem... something scary for a newb. I''m hoping that someone can just say "you forgot to polish the widget before turning the crank" or some other simple newbie-slap. I''m trying to get actionmailer to send
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 =
2006 Feb 02
1
actionmailer - No rhtml, rxml, or delegate template
I''m getting this error when I try to send an email. No rhtml, rxml, or delegate template found for signup_thanks But I do have signup_thanks.rhtml in app/view/notifier This is in the notifier model. class Notifier < ActionMailer::Base def signup_thanks(sent_at = Time.now) @subject = "the subject works!" @body["first_name"] = "first name"
2006 Aug 07
9
problems with ActionMailer
Hi all, I''m trying to create a worker to send a mail to all the users in my db. Right now I''m doing the tests, this is the code in my worker (Masivo is the ActionMailer subclass): def do_work(args) @progress = 0 @logger.info("MAILER: starting job") records = Record.find(:all) total = records.size records.each_with_index do |record, idx|
2008 Oct 25
7
Routing of result not clear in ActionMailer
Dear all, I am trying to understand the following behaviour of the ActionMailer in Rails 2. I have an emailer_controller.rb class EmailerController < ApplicationController def send_mail Emailer::deliver_contact_email(params[:email]) end end I have a model emailer.rb class Emailer < ActionMailer::Base def contact_email(email_params, sent_at = Time.now) @recipients =
2005 Apr 12
0
What does EOFError mean in ActionMailer?
I''m trying to implement a user verification phase in my user registration controller. So I do something like this from within my controller: Notifications.deliver_verification(@user) The method in the mailer object looks like this: def verification(user,sent_at = Time.now) @subject = ''Welcome to XXX'' @body = {} @recipients = user.email @from
2006 May 04
0
Action Mailer Errno::EPIPE using different character sets
1. On my Windows development system everything is fine. 2. On my Linux production server I get an Errno::EPIPE (Broken pipe) error when sending an email using Action Mailer. The specific situation is this: a) Rails 1.1.2 b) The application is running UTF8, but I want to send my emails as ISO-8859-1. c) Sending UTF-8 emails works fine. d) Delivery method is SMTP. e) When using this code
2011 May 24
0
Rails 3.0.7 ActionMailer attachments
Hello, I''m converting my 2.3.8 application to 3.0.7 and have run into a snag with forwarding emails from the app with an attachment. The attachment appears in the email as 1 byte in size and thus corrupt. The actual file is fine and Rails seems to have access to the file. I''ve tried multiple permutations but here''s what I''m doing... I''m fetching email
2007 Nov 17
2
ActionMailer 501: sender address must contain a domain
Hi there guys! Im copying an email example from "Agile web development with rails", but i keep getting a "501: sender address must contain a domain" error. Heres my code in my enviroment.rb. Real values replaced with "something": [code] config.action_mailer.delivery_method = :smtp config.action_mailer.default_charset ="utf-8"
2007 Apr 10
5
Difficulty with body in ActionMailer
AWRDwRv2 is pretty vague on the @body part of setting up a mailer. Here is my problem: >> p = Person.find(1) => #<Person:0x45c944c> >> SiteMailer.request_admin_approval(p) NoMethodError: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occurred while evaluating nil.[]= from site_mailer.rb:10:in