Forum: Ruby on Rails ActionMailer multipart: html, plain and attachment?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Danimal (Guest)
on 2009-03-27 23:26
(Received via mailing list)
Has anyone gotten emails to work where you specify the HTML and the
plain text alternatives, but also include an attachment?

Reason I'm asking: I'm sending out event notices, styled as HTML but
with a plain text alternative. I also want to attach the .ics file.

For some reason, I can't get this to work. If I explicitly put in
"multipart/mixed" (to support the attachment) it won't do the two
alternatives. If I explicitly put in "multipart/alternative" (to
support the HTML and plain text parts), it won't show the attachment.

Is this a Rails/ActionMailer issue or am I just missing something with
how these multipart messages are supposed to be put together?


This topic is locked and can not be replied to.