开发者

Rails 3 ActionMailer: normal and inline attachments in the same email?

开发者 https://www.devze.com 2023-02-03 22:22 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消