code: def images
        inline_attachments = mail.attachments.select(&:inline?)
        inline_attachments.collect do |attachment|
          {
            name: attachment.cid,
            type: attachment.mime_type,
            content: Base64.encode64(attachment.body.decoded)
          }
        end
      end
docs: Mandrill uses a different hash for inlined image attachments