Module sendgrid::v3[][src]

This module encompasses all types needed to send mail using version 3 of the mail send API.

Structs

Attachment

An attachment block for a V3 message. Content and filename are required. If the mime_type is unspecified, the email will use Sendgrid’s default for attachments which is ‘application/octet-stream’.

Content

The body of an email with the content type and the message.

Email

An email with a required address and an optional name field.

Message

The main structure for a V3 API mail send call. This is composed of many other smaller structures used to add lots of customization to your message.

Personalization

A personalization block for a V3 message. It has to at least contain one email as a to address. All other fields are optional.

Sender

Used to send a V3 message body.

Enums

Disposition

The Content-Disposition of the attachment specifying how you would like the attachment to be displayed. For example, inline results in the attached file being displayed automatically within the message. By specifying attachment, it will prompt the user to either view or download the file.

Type Definitions

SGMap

Just a redefinition of a map to store string keys and values.