Page 2 of 2

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

Posted: Fri Mar 21, 2008 3:02 am
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; }
}

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

Posted: Fri Mar 21, 2008 3:22 am
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)