I have a problem with my action mailer .!
When i send mail in the email it shows the html tags same written as in
mailer view html
here is my code:
In the Model :----------------
class CronjobMailer < ActionMailer::Base
def cronjob(sender,recipients, subject, message, late_commers)
@bcc = recipients
@recipients = 'firstname.lastname@example.org'
@from = sender
@subject = subject
@late_commers = late_commers
@sent_on = Time.now
@body[:message] = message
In the Cronjob_mailer view in cronjob.html.erb
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<h1>Welcome to example.com</h1>
You have successfully signed up to example.com,
your username is: .<br/>
To login to the site, just follow this link: .
<p>Thanks for joining and have a great day!</p>
and here is how i am initiating the mailer
when i deliver mail in the email it gives me the same code instead of
html output .
Please help me
Thanks in advance
Posted via http://www.ruby-forum.com/.
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 email@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.