trait SwiftmailerTrait

Swiftmailer trait.

Methods

int
mail(Swift_Message $message, array $failedRecipients = null)

Sends an email.

Details

at line 29
int mail(Swift_Message $message, array $failedRecipients = null)

Sends an email.

Parameters

Swift_Message $message A \Swift_Message instance
array $failedRecipients An array of failures by-reference

Return Value

int The number of sent messages