This project is archived and is in readonly mode.

#1691 ✓resolved
Sean Dague

Allow other types of multipart email when using templates

Reported by Sean Dague | January 3rd, 2009 @ 07:22 PM | in 2.x

When using ActionMailer, if you use the view templates (i.e. invitation.text.plain.erb) ActionMailer forces @content_type to multipart/alternative, even if you have specified multipart/mixed as the content type. This becomes problematic when attempting to send multipart/mixed - text/plain and text/calendar types (which is what most email clients need to both show the message and trigger that it is a calendar invite).

The following patch just checks to see if the content type was already set to a multipart type, and if so does not change @content_type.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket

Referenced by