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