I have a simple ActionMailer class like this:
class MyMailer < ActionMailer::Base
def mail(from, to, cc, bcc, subject, message, sent_at = Time.now)
@sub
If you are using rails3, it is dead easy, as explained in section 2.3.3 "Making Inline Attachments" in this ruby on rails guide
have you seen: http://edgeguides.rubyonrails.org/action_mailer_basics.html#sending-emails-with-attachments for rails3
and:
http://guides.rubyonrails.org/action_mailer_basics.html#sending-emails-with-attachments
for rails2