New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default content type for mailer incorrect #575
Comments
Im unable to reproduce your problem, for me works fine and the content_type is 'alternative', the only case that I've 'mixed' is when I attach a file. |
Moved to 0.10.1 |
@simonhambly I can't reproduce this either...any pointers? Can you try again on 0.10.0 (just released) |
@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 |
Thanks Simon will check back into it! |
Moving to 0.10.2 for now, as 0.10.1 is becoming a hotfix release. |
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. |
This looks like I don't think it's related to the original issue. |
I'll take a look but in my case the problem is with pdf attachments too. I think you are right and is a mail gem problem. Thank you very much, @ujifgc. |
Hi,
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
The text was updated successfully, but these errors were encountered: