On 31 Aug 2010, at 13:10, Pale Horse wrote:
What I want, and can't seem to achieve, is to send an html email
with an
attachment. As it stands, I can do one or the other and aren't
sure how
to get both to work.
I think you're screwing thinks up by forcing the content type to
text/
html - an email with attachments is going to be multipart. Might be
different in 3, but in 2.3 there's a part method that allows you to
specify each of the parts (plain, html, attachments etc.)
Fred
Thank you for your replies, both of you. It is true that I need to
split
the email into different parts but the syntax is losing me.
It's a real pain, even in Rails 3 with the new mail gem (although it's
already a lot more streamlined). And be happy you don't want to bring
inline images to the mix.
This might help:
http://www.wetware.co.nz/blog/2010/06/sending-emails-with-rails-multipart-html-plain-with-attachments/
http://iamwil.posterous.com/2312983
Best regards
Peter De Berdt
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.