Forum: Ruby on Rails How to add a content to an email created with ActionMailer. mail(..,:body) and do |format| either

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
407961424f12d857dc77c09f9b296a16?d=identicon&s=25 Tsvetelina B. (tsvetelina_b)
on 2012-07-08 19:44
(Received via mailing list)
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 :)
E7bf84a8c8f5143e8d90bc3caba15b14?d=identicon&s=25 Javier Quarite (Guest)
on 2012-07-08 19:52
(Received via mailing list)
On Sun, Jul 8, 2012 at 12:43 PM, Tsvetelina Borisova
<ts.borisova3@gmail.com
> wrote:

>
>
Maybe you can start with this screencast:

http://railscasts.com/episodes/312-sending-html-email

HTH

Javier Q.
407961424f12d857dc77c09f9b296a16?d=identicon&s=25 Tsvetelina B. (tsvetelina_b)
on 2012-07-08 20:00
(Received via mailing list)
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 :
This topic is locked and can not be replied to.