PHP Classes

test smtp message script

Recommend this page to a friend!

      MIME E-mail message sending  >  MIME E-mail message sending package blog  >  How Can PHP Send Emai...  >  All threads  >  test smtp message script  >  (Un) Subscribe thread alerts  
Subject:test smtp message script
Summary:smtp coonnection but no email sent or error returned
Messages:2
Author:Paul Graham
Date:2009-11-23 14:24:36
Update:2009-11-23 20:52:52
 

  1. test smtp message script   Reply   Report abuse  
Picture of Paul Graham Paul Graham - 2009-11-23 14:24:36
I am trying to send a mail using SMTp with the test_smtp_message script. I want to run on one domain connecting to the smtp server on another machine.
The script appears to connnect ( after enable the SASL ) but no email gets sent and no error messages returned to the script?

Any suggestions please?

Debug output ...............

Resolving SMTP server domain "mail.xxxxxx.com"...
Connecting to host address "94.126.46.xxx" port 587...
Connected to SMTP server "mail.xxxxxx.com".
S 220 ds39.xxxxxx.com ESMTP Postfix
C EHLO 94.126.45.xxx
S 250-ds39.xxxxxx.com
S 250-PIPELINING
S 250-SIZE 10240000
S 250-VRFY
S 250-ETRN
S 250-STARTTLS
S 250-AUTH PLAIN CRAM-MD5 DIGEST-MD5 LOGIN
S 250-ENHANCEDSTATUSCODES
S 250-8BITMIME
S 250 DSN
C STARTTLS
S 220 2.0.0 Ready to start TLS
Starting TLS cryptograpic protocol
TLS started
C EHLO 94.126.45.xxx
S 250-ds39.xxxxxx.com
S 250-PIPELINING
S 250-SIZE 10240000
S 250-VRFY
S 250-ETRN
S 250-AUTH PLAIN CRAM-MD5 DIGEST-MD5 LOGIN
S 250-ENHANCEDSTATUSCODES
S 250-8BITMIME
S 250 DSN

  2. Re: test smtp message script   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-11-23 20:52:52 - In reply to message 1 from Paul Graham
If that is all the script outputs and nothing else after that, chances are that PHP is crashing or PHP is exiting due to some fatal error. Maybe you need to enable error reporting in your PHP configuration to actually see any error.

You may also want to try see what happens running PHP in the command line.