Using delayed_job to send emails - files filename.text.html.erb
Sometimes they appear in my inbox properly, and sometimes they appear as HTML code.
I have noticed that when I stop delaying the server running and starting, it seems that in some cases, but not all the time. <
In your mailer class, you will see the Content_type
Click on text / html
or text / plain
. Code looks like this:
class postman & lt; ActionMailer :: Base # ... def foo_mail content_type 'text / html' # code end-end # ... end
Comments
Post a Comment