richard.johansson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Oct-17 10:32 UTC
Issues with sending HTML-mail
Hi, Im running an application sending quite a few emails to members. Im building the emails with your every day ActionMailer builders, setting the content_type to "text/html" and charset to "utf-8". Now im hearing reports from some of our members that the emails show up as plain html-text in their clients. One such case is a user running the DWmail web based email client. (http://www.dominion-web.com/products/dwmail/) The website states that the client is supporting html mail, and the user in question doesnt experience the problem with other distributors of html-mail. Could this be related to some rails-issue, and if so are there any tickets in the track? Or, could i build my emails in some other way to extend the compability? Thanks, Richard Johansson richard.johansson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
richard.johansson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> Im running an application sending quite a few emails to members. Im > building the emails with your every day ActionMailer builders, setting > the content_type to "text/html" and charset to "utf-8". > Now im hearing reports from some of our members that the emails show up > as plain html-text in their clients. One such case is a user running > the DWmail web based email client. > Could this be related to some rails-issue, and if so are there any > tickets in the track? > Or, could i build my emails in some other way to extend the > compability?Hi, sending HTML mail (half offtopic here I guess) is very fragile. Here''s all the headers that I *had* to use to make all webmail clients, even the totall broken IncrediMail & Co, and IMP (which is extremely anal retentive about standards, but at least *right*) display my mails correctly. Content-Type: text/html; Charset=utf-8 MIME-Version: 1.0 The "Charset" has to be capital C and indented with a TAB or 8 spaces (otherwise some webmail clients choke on the mail). The MIME-Version: 1.0 is required by at least IMP. Some won''t display the mail if it doesn''t have a correctly formatted From: and To: header - "From: undisclosed-recipients:;" for example, has to have colon AND semicolon. But my guess is that you forgot MIME-Version. ;-) Jens --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---