Why did you choose Swift? (useful to me!)

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

Why do you use Swift Mailer?

It has features I need
2
17%
It provides me with a little extra portability
0
No votes
It's better written than other alternatives
8
67%
I didn't know there were other alternatives
0
No votes
I was recommended to use it
2
17%
 
Total votes: 12

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

Why did you choose Swift? (useful to me!)

Post by Chris Corbyn »

I'm very close to finishing v4 (after over 6 months dev!) but I'm weighing up a few API decisions and would quite like a collective poll on this.

What drove you to use Swift Mailer over other alternatives?
kershawstannery
Forum Newbie
Posts: 2
Joined: Tue Feb 19, 2008 1:53 pm

JOB OFFER !!!

Post by kershawstannery »

//////////////////////////////////
kershawstannery
Forum Newbie
Posts: 2
Joined: Tue Feb 19, 2008 1:53 pm

JOB OFFER !!!

Post by kershawstannery »

GET INTOUCH TO ME ........
EoN
Forum Newbie
Posts: 22
Joined: Thu Oct 11, 2007 5:57 am

Re: Why did you choose Swift? (useful to me!)

Post by EoN »

I was after something that was class based/OOP and could do HTML emails with embedded images.

I was choosing out of PHP Mailer & Swift Mailer, and on reading up on both of them the selling points were the extra features in Swift, and the fact that it seemed to be newer, and always being improved.

To be honest I haven't looked at the code for PHP Mailer, but I find the Swift Mailer code to be VERY well written. Also the documentation has been clear & thorough. Also the forums are a BIG plus, especially how questions are answered so promptly - quite rare on other support forums!

Keep up the good work!

PS. I've got to say, from a marketing point of view, always keep this section on your front page - "Early versions of Swift were comparable to PHPMailer. Swift has since evolved and matured into a fully-fledged object-oriented mailing solution. Compared with PHPMailer, the interface for Swift is both tighter and more intuitive. I genuinely belive that no other mailer comes close to Swift in terms of available features.". That was probably a big part of what sold me! haha
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: Why did you choose Swift? (useful to me!)

Post by Kieran Huggins »

Your code is tight and you haven't dropped development. Both excellent selling points!

I had plenty of experience using mail(), but your implementation just kicks mail()'s ass.

All that being said, I'd love a fluid interface in v6 ;-)
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Re: Why did you choose Swift? (useful to me!)

Post by jmut »

Voted: It has features I need

Pros:
- have documentation with examples
- is php5 so it will probably live longer
- works unicode so I can send cyrillic stuff and anything I can thing of.
- attachments
- html + cleartext body
- all in one..no need of extra packages or something
- it works

Cons: None for me.

I don't care about how code is written from inside as soon as API is clear and there are examples on common scenarious. There is not that much to mailing - single mail, bcc,cc,to, attachments, mass mail , html/clear text body and thats it for the 99% of it.
So with examples covering most stuff it all good.

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

Re: Why did you choose Swift? (useful to me!)

Post by Chris Corbyn »

Kieran Huggins wrote:All that being said, I'd love a fluid interface in v6 ;-)
Like this? (bearing in mind v4 is using DI).

Code: Select all

Swift_MimeFactory::setCharset('utf-8');
 
$message = Swift_MimeFactory::create('message')
  ->setSubject('??? ??????? ??? ?? ?????????????')
  ->setTo(array('rob@site.com' => 'Rob'))
  ->setFrom(array('chris@w3style.co.uk' => '???????????'))
  ->setBody("?? ??? ??????? ??? ?? ????? ????? ???????")
  ->attach(
    Swift_MimeFactory::create('attachment')
      ->setContentType('application/pdf')
      ->setFile(new Swift_FileStream('??? ????? ???????.pdf'))
    )
  ;
There are a few interfaces changes I need to make to make things simpler. And of course, the wrappers for the current API.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: Why did you choose Swift? (useful to me!)

Post by Kieran Huggins »

Something like that!

I'd be happy to help with the interface design, I've put a lot of thought into interfaces recently, for a couple of different projects.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Why did you choose Swift? (useful to me!)

Post by onion2k »

On the recommendation of people here. Truth be told I didn't bother looking at the source until I hit a problem implementing it.
User avatar
Inkyskin
Forum Contributor
Posts: 282
Joined: Mon Nov 19, 2007 10:15 am
Location: UK

Re: Why did you choose Swift? (useful to me!)

Post by Inkyskin »

I use it for 2 reasons:

1: It's very well written (Hence the vote on that note)
2: It stops my mail getting labeled as junk (As it does when using the mail function quite often)

I can't say I have tried any other packages that other people may have written - but that's because I don't need to, this does everything I could dream of and more.
Post Reply