Displaying 1 result from an estimated 1 matches for "answer_as_plain".
2006 Jul 11
0
ActiveMailer HTML + Plain Text + Attachment?
...@content_type = "multipart/alternative"
part "text/html" do |p|
p.body = render_message("answer_as_html", :message => message,
:signature => representative.signature)
end
part "text/plain" do |p|
p.body = render_message("answer_as_plain", :message => message,
:signature => representative.signature)
p.transfer_encoding = "base64"
end
attachment message.attachment.content_type do |a|
a.body = attachment.body
a.filename = attachment.filename
end
end</pre>
--
Posted via h...