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.
Copyright Ⓒ 2023 SAP SE or an SAP affiliate company. All rights reserved.
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
.Returns
A promise resolving to an array of MailResponse.
See
https://sap.github.io/cloud-sdk/docs/js/features/connectivity/destination#referencing-destinations-by-name