Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10267 (closed defect: undocumented)

Opened 6 months ago

Last modified 5 months ago

Both Multipart Emails' Parts (Text and HTML) Appears At The Same Time

Reported by: bubbler63 Assigned to: core
Priority: normal Milestone: 2.x
Component: ActionMailer Version: edge
Severity: normal Keywords:
Cc: bubbler63

Description

I sent a multipart email from ActionMailer, and saw both the HTML part and the Text part appear in the email at the same time (I saw this in Gmail). I can't for the life of me figure out why. Is it because there is an extra CRLF after the HTML content? There shouldn't be one according to http://www.w3.org/Protocols/rfc1341/7_2_Multipart.html.

Change History

(follow-up: ↓ 2 ) 12/05/07 00:23:23 changed by bubbler63

  • status changed from new to closed.
  • resolution set to undocumented.

Never mind, the issue was that rails defaults to "multipart/mixed" content type which DOES NOT work with most email clients (including GMail and Apple Mail). I had to explicitly set the content type to "multipart/alternative" which is more compatible.

(in reply to: ↑ 1 ) 12/25/07 06:42:35 changed by mikong

Replying to bubbler63:

Never mind, the issue was that rails defaults to "multipart/mixed" content type which DOES NOT work with most email clients (including GMail and Apple Mail). I had to explicitly set the content type to "multipart/alternative" which is more compatible.

Why did you resolve the ticket as undocumented? Are you suggesting we add some documentation in Rails that the default is "multipart/mixed"?

It looks like the default multipart content-type is set in the TMail::Mail class which is an external project (http://tmail.rubyforge.org), so a doc ticket may be more appropriate there.