Sending email w/ attachments

I have been following the following how-to with no success:

The following section is what seems to be 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 filesystem object?

Ultimately the script is failing at this portion of code:

Mailer::deliver(mail)

With the following error message:

undefined method `accept' for <File:/path/to/file>

Any help would be much appreciated.