Generated when a message is being sent.
Methods
Create a new SendEvent for $source and $message.
__construct(\Swift_Transport $source, \Swift_Mime_Message $message)
Returns true if this Event will not bubble any further up the stack.
bubbleCancelled() : boolean
Inherited
inherited_from |
\Swift_Events_EventObject::bubbleCancelled() |
Returns
boolean
Prevent this Event from bubbling any further up the stack.
cancelBubble($cancel)
Inherited
inherited_from |
\Swift_Events_EventObject::cancelBubble() |
Parameters
$cancel
Get an recipient addresses which were not accepted for delivery.
getFailedRecipients() : string[]
Get the result of this Event.
getResult() : int
Get the source object of this event.
getSource() : object
Inherited
inherited_from |
\Swift_Events_EventObject::getSource() |
Returns
object
Set the array of addresses that failed in sending.
setFailedRecipients(array $recipients)
Parameters
$recipients
array
Set the result of sending.
setResult($result) : int
Parameters
$result
Returns
int
Properties
$_bubbleCancelled
Inherited
inherited_from |
\Swift_Events_EventObject::$$_bubbleCancelled |
$_failedRecipients : string[]
$_source
Inherited
inherited_from |
\Swift_Events_EventObject::$$_source |
Constants
Sending failed
RESULT_FAILED
Sending has yet to occur
RESULT_PENDING
Sending was successful
RESULT_SUCCESS
Sending worked, but there were some failures
RESULT_TENTATIVE