Page 1 of 1

Lean / light / lite / single file version of SwiftMailer?

Posted: Fri Sep 14, 2007 3:07 pm
by chmac
G'day,

There was some discussion of shipping SwiftMailer with WordPress. However, the SwiftMailer code is bigger than WordPress. Is there a smaller version? Can a bunch of files be removed if only core functionality is needed? Is there a stripped down version available? Would it be easy to package the code into a single file?

Any suggestions / feedback would be great.

Posted: Fri Sep 14, 2007 4:11 pm
by Weirdan
Swift 3.3.1-php5 is only 284 KB in size (without docs and tests). I don't think it's too much of a code. Besides, comments could be stripped from its source and that would reduce swift's size at least twice.

Posted: Sat Sep 15, 2007 12:44 am
by chmac
True, 284Kb is not that big. However, PHPMailer is currently 44Kb and in a single file, which were two of the biggest reasons to keep it. Anyone know if it's possible to combine the SwiftMailer files into a single file?

Posted: Sat Sep 15, 2007 12:59 am
by feyd
phpmailer is also a fair bit slower in execution than swift.

Posted: Sat Sep 15, 2007 3:02 am
by Chris Corbyn
feyd wrote:phpmailer is also a fair bit slower in execution than swift.
And lacks features.

You can delete bits you know you're not going to use (all of what's in "Plugin", most of what's in "Connection" all of what's in "Authenticator", bits of what's in "Message").

What bits do you need? I can't really say what to keep and what to delete without seeing a script you'e using it in.