/home/techb158/immovalet.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift
NameSizeModeActions
AddressEncoder/-0755rm
ByteStream/-0755rm
CharacterReader/-0755rm
CharacterReaderFactory/-0755rm
CharacterStream/-0755rm
Encoder/-0755rm
Events/-0755rm
KeyCache/-0755rm
Mailer/-0755rm
Mime/-0755rm
Plugins/-0755rm
Signers/-0755rm
StreamFilters/-0755rm
Transport/-0755rm
AddressEncoder.php5950644editdlrm
AddressEncoderException.php7210644editdlrm
Attachment.php14490644editdlrm
CharacterReader.php17400644editdlrm
CharacterReaderFactory.php5420644editdlrm
CharacterStream.php21580644editdlrm
ConfigurableSpool.php13620644editdlrm
DependencyContainer.php99280644editdlrm
DependencyException.php5880644editdlrm
EmbeddedFile.php14070644editdlrm
Encoder.php7340644editdlrm
FailoverTransport.php8650644editdlrm
FileSpool.php56200644editdlrm
FileStream.php4880644editdlrm
Filterable.php6260644editdlrm
IdGenerator.php4330644editdlrm
Image.php10520644editdlrm
InputByteStream.php19630644editdlrm
IoException.php6050644editdlrm
KeyCache.php28020644editdlrm
LoadBalancedTransport.php8780644editdlrm
Mailer.php25660644editdlrm
MemorySpool.php27600644editdlrm
Message.php71610644editdlrm
MimePart.php11680644editdlrm
NullTransport.php6730644editdlrm
OutputByteStream.php11280644editdlrm
Preferences.php22250644editdlrm
ReplacementFilterFactory.php5490644editdlrm
RfcComplianceException.php5540644editdlrm
SendmailTransport.php8860644editdlrm
Signer.php3650644editdlrm
SmtpTransport.php17270644editdlrm
Spool.php12400644editdlrm
SpoolTransport.php7800644editdlrm
StreamFilter.php7200644editdlrm
SwiftException.php6010644editdlrm
Transport.php20140644editdlrm
TransportException.php6700644editdlrm
Edit: /home/techb158/immovalet.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/MemorySpool.php (2760B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Stores Messages in memory. * * @author Fabien Potencier */ class Swift_MemorySpool implements Swift_Spool { protected $messages = []; private $flushRetries = 3; /** * Tests if this Transport mechanism has started. * * @return bool */ public function isStarted() { return true; } /** * Starts this Transport mechanism. */ public function start() { } /** * Stops this Transport mechanism. */ public function stop() { } /** * @param int $retries */ public function setFlushRetries($retries) { $this->flushRetries = $retries; } /** * Stores a message in the queue. * * @param Swift_Mime_SimpleMessage $message The message to store * * @return bool Whether the operation has succeeded */ public function queueMessage(Swift_Mime_SimpleMessage $message) { //clone the message to make sure it is not changed while in the queue $this->messages[] = clone $message; return true; } /** * Sends messages using the given transport instance. * * @param Swift_Transport $transport A transport instance * @param string[] $failedRecipients An array of failures by-reference * * @return int The number of sent emails */ public function flushQueue(Swift_Transport $transport, &$failedRecipients = null) { if (!$this->messages) { return 0; } if (!$transport->isStarted()) { $transport->start(); } $count = 0; $retries = $this->flushRetries; while ($retries--) { try { while ($message = array_pop($this->messages)) { $count += $transport->send($message, $failedRecipients); } } catch (Swift_TransportException $exception) { if ($retries) { // re-queue the message at the end of the queue to give a chance // to the other messages to be sent, in case the failure was due to // this message and not just the transport failing array_unshift($this->messages, $message); // wait half a second before we try again usleep(500000); } else { throw $exception; } } } return $count; } }