Code: Select all
try
{
$transport = Swift_MailTransport::newInstance();
}
catch (Exception $e)
{
}
please help!
Moderators: Chris Corbyn, General Moderators
Code: Select all
try
{
$transport = Swift_MailTransport::newInstance();
}
catch (Exception $e)
{
}
Running PHP5 with zend.ze1_compatibility_mode on in php.ini?synthetic2 wrote:any idias? )
I have the same problem and zend.ze1_compatibility_mode = OffChris Corbyn wrote:Running PHP5 with zend.ze1_compatibility_mode on in php.ini?synthetic2 wrote:any idias? )
EDIT | To explain further, this INI setting is a flag to make PHP5 behaviour more like PHP4, and it breaks Swift Mailer (and probably many other PHP5 libraries)
Code: Select all
//Create the Transport
$transport = Swift_MailTransport::newInstance();
//Create the Mailer using your created Transport
$mailer = Swift_Mailer::newInstance($transport);Code: Select all
require_once sfConfig::get('sf_lib_dir').'/vendor/swift_init.php';