Rails 3 ActionMailer: normal and inline attachments in the same email?
I'd like to create an html email with a normal attachement (a pdf file), and an inline attachme开发者_开发技巧nt (an image) as well. These two attachment types work perfectly individually, but don't seem to live well together: the normal attachement disappears (at least in Outlook) as soon as there is an inline attachment.
Is it a bad thing to mix attachment types?
Yes it is a bad idea to mix attachment types as this is a documented issue currently with Action Mailer. Refer to https://github.com/rails/rails/issues/2686 for more details.
精彩评论