Commit 5a211bd6 authored by Fabien Potencier's avatar Fabien Potencier

merged branch NLZ13/master (PR #710)

This PR was squashed before being merged into the master branch (closes #710).

Discussion
----------

Added swiftmailers second argument for the send function within the SwiftmailerTrait

Commits
-------

78115b47 Added swiftmailers second argument for the send function within the SwiftmailerTrait
parents f5e3842d 78115b47
......@@ -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