Swift Mailer 4.0.0 FINAL Available!

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: Swift Mailer 4.0.0 Beta Available!

Post by Chris Corbyn »

sclg wrote:Thanks.
Are they part of the beta download or do I get them somewhere else?
S
They're part of the download. They're just not documented. It's probably worth just looking inside the "lib/classes/Swift/Plugins" directory to see what's there until I document them :) Sorry about that, you know how it is with this whole "documentation" thing :P It's coming before 4.0.0 final.
sclg
Forum Newbie
Posts: 6
Joined: Sat Mar 03, 2007 2:12 pm

Re: Swift Mailer 4.0.0 Beta Available!

Post by sclg »

Great - thanks.
Steve
maular
Forum Newbie
Posts: 1
Joined: Mon Feb 09, 2009 7:57 am

Re: Swift Mailer 4.0.0 Beta Available!

Post by maular »

What's the recommended way to catch meaningful errors while using load balancing? In testing this new version the SMTP server I was using rejected my hostname (app.localhost) - but of course the only error coming through the LoadBalancedTransport was "All Transports in LoadBalancedTransport failed, or no Transports available".

Would you recommend just creating a custom load balancing transport (perhaps just extending the existing one, overriding the send() function), to better identify these errors?

Apologies if there is an obvious solution, I haven't used Swift since v2.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Swift Mailer 4.0.0 Beta Available!

Post by Chris Corbyn »

maular wrote:What's the recommended way to catch meaningful errors while using load balancing? In testing this new version the SMTP server I was using rejected my hostname (app.localhost) - but of course the only error coming through the LoadBalancedTransport was "All Transports in LoadBalancedTransport failed, or no Transports available".

Would you recommend just creating a custom load balancing transport (perhaps just extending the existing one, overriding the send() function), to better identify these errors?

Apologies if there is an obvious solution, I haven't used Swift since v2.
I'll try to pass along the errors that were collected from each failed transport. This should help :) Next version.
IshaDakota
Forum Newbie
Posts: 8
Joined: Sun Jan 18, 2009 8:01 am

Re: Swift Mailer 4.0.0 Beta Available!

Post by IshaDakota »

Chris Corbyn wrote:
sclg wrote:Thanks.
Are they part of the beta download or do I get them somewhere else?
S
They're part of the download. They're just not documented. It's probably worth just looking inside the "lib/classes/Swift/Plugins" directory to see what's there until I document them :) Sorry about that, you know how it is with this whole "documentation" thing :P It's coming before 4.0.0 final.
Any chance to get a brief documentation on how to use plugins with ver4. I'm trying to no avail to use throttler and/or anti-flood. Do you need to require the class (as in ver 3) or is it like the transport (no longer needed)? I see you use "register" instead of "attach" but beyond that I still seem to be getting "class not found" errors.

Certainly can wait till final release, but if your itching for some extra work :wink:
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Swift Mailer 4.0.0 Beta Available!

Post by Chris Corbyn »

Some renaming of classes has been done in terms of namespacing:

Swift_Plugin_Throttler => Swift_Plugins_ThrottlerPlugin
Swift_Plugin_AntFlood => Swift_Plugins_AntiFloodPlugin
IshaDakota
Forum Newbie
Posts: 8
Joined: Sun Jan 18, 2009 8:01 am

Re: Swift Mailer 4.0.0 Beta Available!

Post by IshaDakota »

I see. For any other newbies out there, this is an example of a call to the Anti-flood Plugin (that works for me):

Code: Select all

$mailer->registerPlugin(new Swift_Plugins_AntiFloodPlugin(150, 10)); //this will pause 10 secs after 150 mails
No need any longer to require the class from the plugin directory - very nice, very efficient.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Swift Mailer 4.0.0 Beta Available!

Post by Chris Corbyn »

4.0.0 RC1

Things are looking stable. This is probably going to be 4.0.0 final in 3 days time.

Download: http://cloud.github.com/downloads/swift ... rc1.tar.gz

Fixes:
  • Trivial changes, nothing major
Features:
  • Added some minor methods to components surrounding the headers.

Known Bugs:
  • Missing the FileEmbedder Plugin that was in v3
Documentation

http://swiftmailer.org/betas/docs/v4-wo ... index.html
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Swift Mailer 4.0.0 Beta Available!

Post by Chris Corbyn »

I've just uploaded more up-to-date documentation to go with RC1. This includes some information on plugins (incomplete docs) and information on changing headers.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Swift Mailer 4.0.0 Beta Available!

Post by Chris Corbyn »

Version 4.0.0 is now live.

All you need is at http://swiftmailer.org/

Documentation updates will follow but just ask if you can't find something.
Leeoniya
Forum Newbie
Posts: 8
Joined: Wed Apr 16, 2008 2:19 am

Re: Swift Mailer 4.0.0 Beta Available!

Post by Leeoniya »

sweet jebus! maybe add a forums link to your top nav? i cant find it at all on the page :( and change the topic of this thread to say Final rather than Beta?

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

Re: Swift Mailer 4.0.0 Beta Available!

Post by Chris Corbyn »

Leeoniya wrote:sweet jebus! maybe add a forums link to your top nav? i cant find it at all on the page :( and change the topic of this thread to say Final rather than Beta?

great work.
I might add that to the contact page I guess, near where I mention the Google Group.

http://swiftmailer.org/contact

I'm sort of trying to phase out the heavy use of the forums to be honest and encourage the use of the other resources instead (i.e. the Google Group and Lighthouse). This forum, tucked away in a quiet little corner of DevNetwork is kinda strange really :P People keep using the forum as a bug tracker which makes things difficult to manage now that there are more developers involved.

But you're right, it is hard to see a mention of the forum anywhere on the new website at the moment, so I'll add it somewhere.
schgrypt
Forum Newbie
Posts: 17
Joined: Thu Jan 29, 2009 6:34 am

Re: Swift Mailer 4.0.0 FINAL Available!

Post by schgrypt »

Congratulations to your release and the new page, Chris :drunk:

Looks good and, of course, its running great.

One detail on the page: "Documentation" in the footer links to /docs/ (Forbidden) instead of /docs/introduction.

Thank you so much for your great work once again, Hip Hip Hurray from the continent
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Swift Mailer 4.0.0 FINAL Available!

Post by Chris Corbyn »

Thanks :)
schgrypt wrote:One detail on the page: "Documentation" in the footer links to /docs/ (Forbidden) instead of /docs/introduction.
Ah, bugger. I'll fix that, cheers. Basically my .htaccess mod_rewrite rule is getting confused since a directory called "docs" exists with no ability show directory listings, yet "/docs" in the URL should be directed to one of my application's controllers.

I'll fiddle with the rewrite rules :)
Post Reply