ActionMailer also allows attaching files.
attachments['filename.jpg'] = File.read('/path/to/filename.jpg')
By default, attachments will be encoded with Base64. To change this, you can add a hash to the attachments method.
attachments['filename.jpg'] = {
mime_type: 'application/gzip',
enco...