sendWithProvider()
Overview
public any function sendWithProvider(
required string provider
, required struct sendArgs
, boolean logSend = true
)
Sends an email through the given provider's send action. Returns true to indicate that the email was sent successfully, false otherwise.
Arguments
Name | Type | Required | Description |
---|---|---|---|
provider | string | Yes | ID of the provider through which to send the email |
sendArgs | struct | Yes | Structure of arguments to send to the provider's send handler action |
logSend | boolean | No (default=true) | Whether or not to log the email send and track future events |