Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Default content type for mailer incorrect #575
Just been having some trouble with the mailer and sending multipart emails to gmail. If you configure the email as described in the "mailer guide" like so
the default content type is "multipart/mixed" not "multipart/alternative" as the guide incorrectly states.
Having "multipart/mixed" causes gmail to display both the plain and html versions of the email. Changing the email config as below (adding content_type)
ensure the email is displayed correclty
@nequena I've put together a little test app to illustrate - the repo is on github.
The mailers are in /app/mailers... they send multipart email (plain and html using haml template). There are 2 mailers; one that uses the default content_type and the other uses multipart/alternate.
I've included two screenshots of the emails in gmail (admittedly google apps for domains) to show you the problem - these are in the /gmail-screenshots folder.
Let me know if you can reproduce this. Oh, yes nearly forget this with the padrino 0.10.0 gem
I don't know if is possible to reopen this one... now some MUAs, and over some MTAs, shows only the last part, for example an attachement. No text content and no html content, because all are multipart/alternative, suggesting each part is just an alternate view of the same message.
Text and Html should be alternates, but no the attachments.
I've tried to workaround it, but no results.