Looking towards February - Version 4 (DI-centric design)

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Looking towards February - Version 4 (DI-centric design)

Post by Chris Corbyn »

xdecock wrote:Would it be possible to create a Swift_Transport_Dummy ? to allow application benchmarking without introducing the smtp / mail() / /usr/bin/sendmail delay in the test? (and will be a good "troubleshoot" tool when getting SwiftMailer is too slow topics)
That would be easy for you to do :)

Code: Select all

class DummyTransport implements Swift_Transport {
  public function start() { }
  public function stop() { }
  public function isStarted() { return true; }
  public function send(Swift_Mime_Message $msg) { return 0; }
}
xdecock
Forum Commoner
Posts: 37
Joined: Tue Mar 18, 2008 8:16 am

Re: Looking towards February - Version 4 (DI-centric design)

Post by xdecock »

Yes, but i was thinking of it inside the distribution

And with CC, BCC, To, and message preparation treatment, so you only exclude sending process time.

I'll try to post this (along with the stream_select based Transport prototype)
Post Reply