Ruby on Rails Sunday, July 8, 2012

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@googlegroups.com.
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.

No comments:

Post a Comment