Migration report (3.3 to 4.0.3)

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
arena
Forum Newbie
Posts: 11
Joined: Tue Jun 05, 2007 5:36 am

Migration report (3.3 to 4.0.3)

Post by arena »

Just to report about the migration i started this morning

1 . replaced all

Code: Select all

        try 
        {
        }
        catch (.......... $e) 
        {
        }
by

Code: Select all

        try 
        {
        }
        catch (Swift_SwiftException $e) 
        {
        }
2. changed

Code: Select all

        Swift_CacheFactory::setClassName('Swift_Cache_Disk');
        Swift_Cache_Disk::setSavePath($mytempdir);
by

Code: Select all

        Swift_Preferences::getInstance()->setTempDir($mytempdir)->setCacheType('disk');
3. added this for potential perf issues

Code: Select all

        $this->message->setEncoder(Swift_Encoding::get8BitEncoding());
4. tried to find the instruction replacing

Code: Select all

        $message->headers->setLanguage($mylang);
but couldn't find it

5. replaced the code following the very good doc !

6. first test (after some debugging) : first swift exception logged (so exceptions works !)

7. second test (after some debugging) : got the mail in my mail box !!!

hope this report will help !!!

thanks to the swiftmailer team for this wonderfull soft & doc.
arena
Forum Newbie
Posts: 11
Joined: Tue Jun 05, 2007 5:36 am

Re: Migration report (3.3 to 4.0.3)

Post by arena »

btw i am on php5.2.5 and everything is working fine !
everisk
Forum Newbie
Posts: 11
Joined: Sat Mar 21, 2009 9:32 am

Re: Migration report (3.3 to 4.0.3)

Post by everisk »

Thanks for the report! It's really helpful .. if you could post performance comparison before and after upgrade that would be even better. Thanks!
Post Reply