Commit 78115b47 authored by NLZ13's avatar NLZ13 Committed by Fabien Potencier

Added swiftmailers second argument for the send function within the SwiftmailerTrait

parent e9e1b209
......@@ -22,9 +22,11 @@ trait SwiftmailerTrait
* Sends an email.
*
* @param \Swift_Message $message A \Swift_Message instance
* @param array $failedRecipients An array of failures by-reference
* @return int
*/
public function mail(\Swift_Message $message)
public function mail(\Swift_Message $message, &$failedRecipients = null)
{
return $this['mailer']->send($message);
return $this['mailer']->send($message, $failedRecipients);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment