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

NameTypeRequiredDescription
providerstringYesID of the provider through which to send the email
sendArgsstructYesStructure of arguments to send to the provider's send handler action
logSendbooleanNo (default=true)Whether or not to log the email send and track future events