How to add a content to an email created with ActionMailer. mail(..,:body) and do |format| either
17 views
Skip to first unread message
Tsvetelina Borisova
unread,
Jul 8, 2012, 1:43:25 PM7/8/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
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 :)
Javier Quarite
unread,
Jul 8, 2012, 1:51:10 PM7/8/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
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 : )