mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-15 22:11:36 +01:00
swiftmailer
This commit is contained in:
@@ -32,18 +32,41 @@ interface Swift_Transport
|
||||
*/
|
||||
public function stop();
|
||||
|
||||
/**
|
||||
* Check if this Transport mechanism is alive.
|
||||
*
|
||||
* If a Transport mechanism session is no longer functional, the method
|
||||
* returns FALSE. It is the responsibility of the developer to handle this
|
||||
* case and restart the Transport mechanism manually.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
* if (!$transport->ping()) {
|
||||
* $transport->stop();
|
||||
* $transport->start();
|
||||
* }
|
||||
*
|
||||
* The Transport mechanism will be started, if it is not already.
|
||||
*
|
||||
* It is undefined if the Transport mechanism attempts to restart as long as
|
||||
* the return value reflects whether the mechanism is now functional.
|
||||
*
|
||||
* @return bool TRUE if the transport is alive
|
||||
*/
|
||||
public function ping();
|
||||
|
||||
/**
|
||||
* Send the given Message.
|
||||
*
|
||||
* Recipient/sender data will be retrieved from the Message API.
|
||||
* The return value is the number of recipients who were accepted for delivery.
|
||||
*
|
||||
* @param Swift_Mime_Message $message
|
||||
* @param Swift_Mime_SimpleMessage $message
|
||||
* @param string[] $failedRecipients An array of failures by-reference
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function send(Swift_Mime_Message $message, &$failedRecipients = null);
|
||||
public function send(Swift_Mime_SimpleMessage $message, &$failedRecipients = null);
|
||||
|
||||
/**
|
||||
* Register a plugin in the Transport.
|
||||
|
||||
Reference in New Issue
Block a user