Page 1 of 1

Migration report (3.3 to 4.0.3)

Posted: Fri Jun 19, 2009 7:32 am
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.

Re: Migration report (3.3 to 4.0.3)

Posted: Fri Jun 26, 2009 11:15 am
by arena
btw i am on php5.2.5 and everything is working fine !

Re: Migration report (3.3 to 4.0.3)

Posted: Thu Jul 02, 2009 9:06 am
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!