code: def attachments
        regular_attachments = mail.attachments.reject(&:inline?)
        regular_attachments.collect do |attachment|
          {
            name: attachment.filename,
            type: attachment.mime_type,
            content: Base64.encode64(attachment.body.decoded)
          }
        end
      end
docs: Returns a Mandrill API compatible attachment hash