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

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

Post Reply
chmac
Forum Newbie
Posts: 2
Joined: Fri Sep 14, 2007 3:03 pm

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

Post 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.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post 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.
chmac
Forum Newbie
Posts: 2
Joined: Fri Sep 14, 2007 3:03 pm

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

phpmailer is also a fair bit slower in execution than swift.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
Post Reply