You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In noticed a possible bug in Chapter 20: Send Email - Create the Mailer View
When implementing the app/views/user_mailer/contact_email.html.erb, we provide the DOCTYPE, head tags and body tags in the file.
However, when sending a test email, I first got a message within the email saying it could not be displayed because of the way it was formatted. Checking the console showed the email was given extra <html> and <body> tags on top of the ones that we already provided:
It seems that the Mailer is already providing the Doctype, head tags, as well as <html> and <body> tags. I removed the extra tags in the user_mailer/contact_email.html.erb file and it displayed fine after that:
In noticed a possible bug in Chapter 20: Send Email - Create the Mailer View
When implementing the
app/views/user_mailer/contact_email.html.erb
, we provide the DOCTYPE, head tags and body tags in the file.However, when sending a test email, I first got a message within the email saying it could not be displayed because of the way it was formatted. Checking the console showed the email was given extra
<html>
and<body>
tags on top of the ones that we already provided:It seems that the Mailer is already providing the Doctype, head tags, as well as
<html>
and<body>
tags. I removed the extra tags in theuser_mailer/contact_email.html.erb
file and it displayed fine after that:Also no extra tags in the console outputs:
Should this be changed?
The text was updated successfully, but these errors were encountered: