From 07f5140771388c9e0c8a99b0dd2e5d950bdb173b Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Thu, 14 Oct 2021 15:16:42 +1100 Subject: moving h-source subdir out. --- .../lib/classes/Swift/Events/SendEvent.php | 127 +++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100755 External/swiftmailer/lib/classes/Swift/Events/SendEvent.php (limited to 'External/swiftmailer/lib/classes/Swift/Events/SendEvent.php') diff --git a/External/swiftmailer/lib/classes/Swift/Events/SendEvent.php b/External/swiftmailer/lib/classes/Swift/Events/SendEvent.php new file mode 100755 index 0000000..49a8351 --- /dev/null +++ b/External/swiftmailer/lib/classes/Swift/Events/SendEvent.php @@ -0,0 +1,127 @@ +_message = $message; + $this->_result = self::RESULT_PENDING; + } + + /** + * Get the Transport used to send the Message. + * @return Swift_Transport + */ + public function getTransport() + { + return $this->getSource(); + } + + /** + * Get the Message being sent. + * @return Swift_Mime_Message + */ + public function getMessage() + { + return $this->_message; + } + + /** + * Set the array of addresses that failed in sending. + * @param array $recipients + */ + public function setFailedRecipients($recipients) + { + $this->_failedRecipients = $recipients; + } + + /** + * Get an recipient addresses which were not accepted for delivery. + * @return string[] + */ + public function getFailedRecipients() + { + return $this->_failedRecipients; + } + + /** + * Set the result of sending. + * @return int + */ + public function setResult($result) + { + $this->_result = $result; + } + + /** + * Get the result of this Event. + * The return value is a bitmask from + * {@link RESULT_PENDING, RESULT_SUCCESS, RESULT_TENTATIVE, RESULT_FAILED} + * @return int + */ + public function getResult() + { + return $this->_result; + } + +} \ No newline at end of file -- cgit v1.2.3