similar to: Using Layouts with ActionMailer when sending html formatted emails

Displaying 20 results from an estimated 9000 matches similar to: "Using Layouts with ActionMailer when sending html formatted emails"

2009 Mar 06
5
ActionMailer Layout on HTML version not Plain Text
I''m sending plain text and html emails by having multiple files for each email I send. For example, for my registration email I have a registration.text.plain.erb file and a registration.text.html.erb file. I want to use a layout for the html version of my emails. In my mailer I put: class AccountsMailer < ActionMailer::Base layout ''email'' ... end
2006 Mar 09
0
Sending files other than html via Actionmailer
I''ve been trying to set up to send already generated PDF''s via the ActionMailer class however it dosn''t seem to send the full file. So when I try to load the file after being sent it via email it dosn''t because it is corrupt. When I choose to send HTML instead it sends fine but it dosn''t work with Word Documents either Do I need to do anything special
2006 Jul 24
5
Actionmailer sending many emails in same SMTP connection?
Hi, I need to implement a mailing list system, Actionmailer is great, but i haven''t found out a way to send many (hundreds of) emails without having to reconnect to the SMTP server for each mail when calling Mymailer::deliver_my_mail(recipient) Any tips? (Possibly without calling directly Net::SMTP, so i can take advantage of the rhtml rendering of the body) Thanks, Best regards,
2006 Nov 29
1
actionmailer on Debian Etch
Hello, I have two debian etch systems, both have rails. I have installed them with apt, not gems. No problems so far. Now I have tried to use the actionmailer. The results: mage@miranda:~/temp$ rails mailer create create app/controllers [....] create log/test.log mage@miranda:~/temp$ cd mailer mage@miranda:~/temp/mailer$ script/generate mailer Letter test send
2006 Mar 22
3
Rendering partials in ActionMailer?
Hello, Is anyone out there rendering partials successfully in ActionMailer templates? I am having trouble with this, and wasn''t sure if it was my configuration or something with a version of Rails I''m running. We''ve got over 15 mailer templates, all working like a charm. But we have a piece of shared code, that we''d really like to not have to copy &
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
2009 Mar 26
1
Turning off the layout in ActionMailer?
So I''m happy to see that ActionMailer supports layouts now (it may have for a while, but I just now realized it). But I don''t see a way to turn them off selectively or by multipart type. For example, if I have a layout that''s really simple in "layouts/ email.html.erb": <div style="border:1px solid gray"> <%= yield %> </div> I
2009 Mar 27
0
ActionMailer multipart: html, plain and attachment?
Has anyone gotten emails to work where you specify the HTML and the plain text alternatives, but also include an attachment? Reason I''m asking: I''m sending out event notices, styled as HTML but with a plain text alternative. I also want to attach the .ics file. For some reason, I can''t get this to work. If I explicitly put in "multipart/mixed" (to support the
2007 Mar 13
0
ActionMailer error
Hi, I''ve sent e-mails with action mailer in other controllers. Now I''m repeating the same trick to send emails. I have def bt_notify( bt ) @recipients = bt.product.user @body["product"]=bt.product @body["bt"]=bt @from = "xxxx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" @subject = "blahblah" end in my mailer.rb and
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 =
2011 Jul 27
3
Rspec with ActionMailer and .deliver
I''m in the process of migrating from Rails 2 with rspec 1 to Rails 3 with rspec 2, the process has been going pretty well, however, today I came across an issue that I wanted to share. I have a controller that sends out an email through a mailer. Rails 2 code: CurriculumCommentMailer.deliver_comment_update(@curriculum_comment, "created") Rails 3 code:
2005 Mar 10
6
problems with ActionMailer
I''m having some problems with ActionMailer and I''m hoping that someone can help. I''ve followed the tutorial on "How To Send Emails With Action Mailer" <URL: http://wiki.rubyonrails.com/rails/show/HowToSendEmailsWithActionMailer >, I''ve generated a mailer -- "notifier.rb" -- and I''ve added the following method to the
2006 May 24
1
ActionMailer (Action Mailer) Template not found? Help!!
I have been going around on the Internet about this all day and found absolutely nothing that seems to fit this problem. I have a mailer named "Notifier" -- in fact I have been using the EXACT code from the "Agile Development With Rails" chapter on "Sending E-Mail", pp. 411-416, except for my names (mailer named "Notifier", emailer method named
2007 May 21
0
Helpers not available to ActionMailer classes in backgroundrb
Hi there, I''ve got a problem I''m hoping someone else has run into before and might have some tips on. I have an ActionMailer class where I''m manually including my application helper along with simply_helpful for use in my html emal templates. This works fine when calling the mailer class from another model class.. (example.. @order.deliver_emails would be a method
2009 Jan 07
0
Actionmailer and postfix settings
Hi, I am having problems configuring my actionmailer to work with postfix. I followed this tutorial: http://howtoforge.org/virtual-users-and-domains-postfix-courier-mysql-centos5.1 and i got the server set up. at first i fixed the mail settings to work with gmail using this tutorial: http://www.danielfischer.com/2008/01/09/how-to-use-gmail-as-your-mail-server-for-rails/ and my app worked
2006 May 23
2
ActionMailer stopped working after upgrade to Rails 1.1
Hello, I am using implicit e-mail templates to send HTML messages. I had no problems till I have upgraded to Rails 1.1. Now the deliver_xxx method just fails without *any* error message. No error or whatsoever (both in development and production environments) exist in logs. Stranger than that, a blank page is being displayed (according to logs, 0 length response, with 200 OK code). I googled for
2006 Jan 16
1
ActionMailer Funkiness
I spent today getting a mailer setup locally. Everything was well so I commited my changes and went about making sure it was working on the production box. Well, it wasn''t. Here''s the setup. I have a method in my Statistic model that send the mail through a method in a mailer. I am using script/runner to send this mail periodically. When I use this: ----- script/runner
2011 Apr 22
0
ActionMailer : Not able to send out mails
Hello, I have the following code in my environment/development.rb config.action_mailer.raise_delivery_errors = true; config.action_mailer.delivery_method = :smtp; config.action_mailer.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :user_name => "my_id-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org", :password => "secret",
2007 Mar 30
0
Submit form by email (ActionMailer)
Hey all, I am trying to send a form''s details by email using action mailer class. I am not able to validate the fields before submitting them by email... and i am stuck at this stage at the moment. I created an action mailer applic and a controller to control confirmation after the submit. Does anyone have any idea how to do that? Cheers, -- Posted via http://www.ruby-forum.com/.
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 =