Certainly is! If you're using Zend_Mail_Transport_Smtp, you can do the
following:-
$tr = new Zend_Mail_Transport_Smtp('your.server.com', $options); //
see example at http://framework.zend.com/manual/en/zend.mail.smtp-authentication.html
$mail = new Zend_Mail();
// Populate $mail with recipients, data, etc...
//...
try {
$mail->send($tr);
} catch (Zend_Mail_Exception $e) {
$log = $tr->getConnection()->getLog();
}
The $log instance will contain a complete transcript, commencing with
the HELO all the way up until the exception was thrown. You can also
reset the log inbetween each $mail->send() simply by calling $tr-
>getConnection()->resetLog();
Cheers
I'm using an external SMTP server (from my ISP, smtp.bredband.net),
so I can't check any logs.
Is it possible to debug on that?
Ben Scholzen 'DASPRiD' wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
If you use the default adapter (nothing set), then PHP's mail()
function
is used, which will only return true or false, so there is nothing
you
could debug. I suggest that you check the log of the mail server.
Anders Gunnarsson schrieb:
Hi
Is there a way to debug Zend_mail?
I'm not getting any errors, but I'm not receiving any email.
Actually I can send emails while I'm running the page through
localhost,
but not while going through the www-adress.
I'd like to debug the whole handshake procedure and see where it
fails.
regards
Anders
- --
...................................
: ___ _ ___ ___ ___ _ ___ :
: | \ /_\ / __| _ \ _ (_) \ :
: | |) / _ \\__ \ _/ / | |) | :
: |___/_/:\_\___/_| |_|_\_|___/ :
:........:........................:
: Web : http://www.dasprids.de :
: E-mail : [EMAIL PROTECTED] :
: Jabber : [EMAIL PROTECTED] :
: ICQ : 105677955 :
:........:........................:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIRCtX0HfT5Ws789ARAgzeAJ9QykrQfMMfY9KZDRkn2vF9SC2cWQCfRTlO
F55VdxMCpsbMDJGz1+U01ko=
=IPRR
-----END PGP SIGNATURE-----
--
Simon Mundy | Director | PEPTOLAB
""" " "" """""" "" "" """"""" " "" """"" " """"" " """""" "" "
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654
4124
http://www.peptolab.com