Tsvetelina Borisova
2012-Jul-08 17:43 UTC
How to add a content to an email created with ActionMailer. mail(..,:body) and do |format| either
Hello, I am using ActionMailer and rails 3.0.9 and I want to add a content
to an email that the user has entered but when I write:
mail(...,:body=>"Something") I can''t send the email. I
tried mail(....) do
|format|
format.html {render :template=>''some''}
end
but that didn''t changed the content of the email. Can someone help me?
Thanks in advance :)
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/-_rBAyNiq9YJ.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en-US.
Javier Quarite
2012-Jul-08 17:51 UTC
Re: How to add a content to an email created with ActionMailer. mail(..,:body) and do |format| either
On Sun, Jul 8, 2012 at 12:43 PM, Tsvetelina Borisova <ts.borisova3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello, I am using ActionMailer and rails 3.0.9 and I want to add a content > to an email that the user has entered but when I write: > mail(...,:body=>"Something") I can''t send the email. I tried mail(....) do > |format| > > format.html {render :template=>''some''} > > end > but that didn''t changed the content of the email. Can someone help me? > Thanks in advance :) > >Maybe you can start with this screencast: http://railscasts.com/episodes/312-sending-html-email HTH Javier Q. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.
Tsvetelina Borisova
2012-Jul-08 17:58 UTC
Re: How to add a content to an email created with ActionMailer. mail(..,:body) and do |format| either
I was wrong. I don''t know what I have done wrong when I tried :body=>"some" the first time but now it worked! JavierQQ thank you for the quick response : ) 08 юли 2012, неделя, 20:43:25 UTC+3, Tsvetelina Borisova написа:> > Hello, I am using ActionMailer and rails 3.0.9 and I want to add a content > to an email that the user has entered but when I write: > mail(...,:body=>"Something") I can''t send the email. I tried mail(....) do > |format| > > format.html {render :template=>''some''} > > end > but that didn''t changed the content of the email. Can someone help me? > Thanks in advance :) > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/a217QtgYMTwJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.