Hi, I have a pretty standard and simple mailer model with its own html and text view. When I send it, the content of the email is actually sorta headers and the actual message isn’t there. The mailer looks like this: class TestMailer < ApplicationMailer default from: "email@example.com" def test_message to = "firstname.lastname@example.org" subject = "Message" @message = "This is the message" mail to: to, reply_to: "email@example.com", subject: subject, template_path: 'test_mailer', template_name: 'test_message' end end The views just print the @message variable. but what I receive looks like this: irb(main):003:0> mailer.html_part.body.to_s => "<html>\n <body>\n Date: Mon, 07 Sep 2015 18:34:23 -0400\nFrom: firstname.lastname@example.org\nReply-To: email@example.com\nTo: firstname.lastname@example.org\nMessage-ID: <email@example.com>\nSubject: Message\nMime-Version: 1.0\nContent-Type: text/plain\nContent-Transfer-Encoding: 7bit\n\n\n\n </body>\n</html>\n" irb(main):004:0> Anyone has any idea what the heck is going on?
on 2015-09-08 00:43
on 2015-09-08 02:54
Nevermind... I was using the <%= message %> variable instead of <%= @message %> O_o