Page 1 of 1

Why didn't the mail go out?

Posted: Fri Sep 21, 2007 3:04 pm
by afwt
Is there a way to get a string message with a reason why send() returned false (0)?

I was searching the docs, but couldn't find a way to save a message of what happened (why did sending failed).

Re: Why didn't the mail go out?

Posted: Sat Sep 22, 2007 2:16 am
by Chris Corbyn
afwt wrote:Is there a way to get a string message with a reason why send() returned false (0)?

I was searching the docs, but couldn't find a way to save a message of what happened (why did sending failed).
Check the log:

http://www.swiftmailer.org/wikidocs/v3/misc/logging

Code: Select all

$swift =& new Swift(...);
$log =& Swift_LogContainer::getLog();
$log->setLogLevel(4);

$swift->send(....);

$log->dump();