attachments()
Instance Public methods
Allows you to add attachments to an email, like so:
mail.attachments['filename.jpg'] = File.read('/path/to/filename.jpg')
If you do this, then Mail will take the file name and work out the mime
type set the Content-Type, Content-Disposition, Content-Transfer-Encoding
and base64 encode the contents of the attachment all for you.
You can also specify overrides if you want by passing a hash instead of a
string:
mail.attachments['filename.jpg'] =