transport
: (function) A nodemailer transporter that has been configuredfromAddress
: (string) The email address that emails will be sent from.
env
: (string enum) The current environment that server is running in, valid options below.- development
- local
- production
templateSettings
: (object) Settings that will be passed to all templates, see theme options below.
component
: (function) A React component that uses mjml for renderingsubject
: (string) A email subject that will be sent to the email client.
All template options are optional. If address, header image, or contact is not passed to the plugin, then props are required for their components.
If a value is set for anything, all values will be overwritten. For instance, if a color template setting is set, secondary, danger, success, etc. will no longer be available unless used in the new value.
If a setting is included, then the nested values will be required if marked as such.
colors
: (object) An object that includes a key (e.g. primary) and a hex string (e.g.'#ECECEC'
).primary
: (string) A primary color to be used, required
header
: (object) An object that affects the header settingsimg
: (object) An object that includes image data for headerssrc
: (string) A url for the image source requiredalt
: (string) An alt tag describing the image required
address
: (object) An object that has address information for use in address componentsname
: (string) requiredaddressLine1
: (string) requiredaddressLine2
: (string) requiredcity
: (string) requiredstate
: (string) requiredzip
: (string) requiredcountry
(string) required
contact
(array[object]) An array of objects with contact informationname
: (string) Name describing the contact methodvalue
: (string) Value of what will actually be displayed to user requiredhref
: (string) Link for the contact (e.g.'mailto:[email protected]'
)type
: (string enum) The type of contact. See below for possible values. required- phone
- website
- fax
colors
: An object including possible color typesprimary
: #9b59b6secondary
: #95a5a6danger
: #f64747success
: #2ecc71warning
: #e67e22