Forum: Ruby on Rails Composing HTML e-mail with a PDF attachment

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4ef16ff17bbfb331c657d584ea0dc135?d=identicon&s=25 Reuven M. Lerner (Guest)
on 2005-12-16 23:06
(Received via mailing list)
Hi, everyone.  I've been using Rails for a little while now, and am
really, really enjoying the experience.

I'm having the darndest time trying to send e-mail whose contents are in
HTML, and which includes a PDF attachment.  Following various
instructions (in the Pragmatic book, as well as at
<http://wiki.rubyonrails.com/rails/pages/HowToSendE...),
I'm able to send HTML e-mail *or* a PDF attachment (generated from
pdf/writer).  But I can't figure out how to use an .rhtml template to
generate the HTML, and then attach a PDF file to it.  I've thought about
rendering a separate template from the one with the same name as my
ActionMailer subclass, but it seems a bit roundabout to define two
different methods to send one e-mail message.

I've tried the suggestions at
<http://wiki.rubyonrails.com/rails/pages/HowToSendM...,
but to no avail.

Does anyone have a simple solution to this problem?

Thanks in advance,

Reuven
3eeb524afdb94fc6e6dff20bd745162d?d=identicon&s=25 Peter Bohm (Guest)
on 2005-12-18 17:25
(Received via mailing list)
Hi Reuven,
which way do you send the email? Using the raw TMail object as described
in the HowToSendMimeMultipartEmailsWithActionMailer? Can you post some
code?

Thanks

Peter
This topic is locked and can not be replied to.