> I''m very green with regard to any Ruby mail stuff. I posted
> a request on the Ruby forum to get some information on doing
> a simple e-mail with an attachment. A nice guy responded
> with a huge class that he''d made, just for mailing, using
> net/smtp. But, I can''t figure it out. So, I''d like to try
> tmail.
Good idea :)
> Nowhere in the doc do I see anything about sending an
> attachment. Can someone please help me to create a mailing
> template for the following?
What are you using TMail inside of? I have never really needed to
generate attachments in my applications.
TMail only handles the headers, not the body. So, there is no direct
way to attach an attachment to TMail. You have to go through it step
by step.
But maybe we could add something like
TMail::Mail#add_attachment(file_object). That might be cool.
Anyone want to help give that a shot?
Mikel