Introduction
Payload comes ready to send your application’s email. Whether you simply need built-in password reset email to work or you want customers to get an order confirmation email, you’re almost there. Payload makes use of NodeMailer for email and won’t get in your way for those already familiar.
For email to send from your Payload server, some configuration is required. The settings you provide will be set in the email property object of your payload init call. Payload will make use of the transport that you have configured for it for things like reset passwords or verifying new user accounts and email send methods are available to you as well on your payload instance.
Configuration
Three ways to set it up
Default: When email is not needed, a mock email handler will be created and used when nothing is provided. This is ideal for development environments and can be changed later when ready to go to production.
Recommended: Set the transportOptions and Payload will do the set up for you.
Advanced: The transport object can be assigned a nodemailer transport object set up in your server scripts and given for Payload to use.
The following options are configurable in the email property object as part of the options object when calling payload.init().
