optionally define the recipients to receive the message - otherwise we'll use the To, Cc, and Bcc headers provided in the document - to[] string the email address of the recipient
$mail_from
—
string
the address specified in the MAIL FROM stage of the SMTP conversation. Required for the SPF check.
$helo
—
string
the identification provided by the client mta in the MTA state of the SMTP conversation. Required for the SPF check.
$client_address
—
string
the remote MTA's ip address. Optional; required for the SPF check.
Returns
array
an array of the information for each recipient in the message (usually one) that matched an inbound route - return[] struct the individual recipient information
- email string the email address of the matching recipient
- pattern string the mailbox route pattern that the recipient matched
- url string the webhook URL that the message was posted to