It seems that while I was updating rails to 3.2.8, the body is not set when I create and send emails. At this time, the code around the mail programs did not change, with the exception of ActionMailer, which also upgraded to 3.2.8.
I have beta_request_mailer.rbin app/mailersthe following method:
def beta_request(request)
mail(
:to => "#{request[:name]} <#{request[:email]}>",
:subject => 'Thanks for requesting an invite to xxxxx!'
)
end
I also have a body file that worked fine: app/views/beta_request_mailer/beta_request_email.html.erb
The letter is sent perfectly, without any body. By launching the console, the mail object created in beta_request does not have a body at startup mail.body. If I set up the body manually, it will be sent.
What has changed, what do I not know about?
source
share