A destination or a destination name and a JWT.
A single object or an array of MailConfig.
Optional
mailClientOptions: MailClientOptionsA MailClientOptions that defines the configurations of the mail client, e.g., how to set up an SMTP transport, including SSL and tls configurations.
A promise resolving to an array of MailResponse.
Sends e-mails to a target mail server defined in a given destination. Builds a transport between the application and the mail server, sends mails sequentially by using the transport, then closes it. This function also does the destination look up, when passing
DestinationOrFetchOptions
.