Displaying 2 results from an estimated 2 matches for "my_attach".
Did you mean:
db_attach
2005 May 03
0
ActionMailer w/ attachment
...escribed in the
following how-to article:
http://wiki.rubyonrails.com/rails/show/HowToSendEmailsWithActionMailer
I can send basic emails successfully but the discussion regarding
attachments is giving me trouble.
mail.set_content_type(''multipart'', blah blah)
mail.parts << my_attachment
Questions:
1) Am I setting the content type for the attachment I am about to append?
2) What is "my_attachment" supposed to be, a file object?
Ultimately the script is failing at this portion of code with
everything I have tried so far:
Mailer::deliver(mail)
With the following err...
2005 Feb 11
1
adding attachment to ActionMailer
Is it possible to add an attachment and send it with ActionMailer?