Hi,

On Tue, Aug 31, 2010 at 5:34 AM, Pale Horse <[email protected]> wrote:
> 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.

http://api.rubyonrails.org/classes/ActionMailer/Base.html

I suspect the answer to your problem lies in the last sentence of the
'Multipart Emails' section which says:

"Implicit template rendering is not performed if any attachments or
parts have been added to the email. This means that you’ll have to
manually add each part to the email and set the content type of the
email to multipart/alternative."

The latter portion of the 'Mailer Models' section addresses explicit
template rendering.  Googling 'rails mailer explicit template
rendering' offered up some links that look helpful.  There's one by
Eric Hodel that looked like it might point the way.

HTH,
Bill

-- 
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.

Reply via email to