verification of mail success

From: Date: Fri, 24 Feb 2006 00:22:12 +0000
Subject: verification of mail success
Groups: php.general 
Request: Send a blank email to php-general+get-230992@lists.php.net to get a copy of this message
Hi, This might be "too simple" or not... I'm trying to send emails from my PHP page, and while both mail() and PEAR Mail work, I'm having a hard time finding out whether a message was actually sent or not. With both mail() and PEAR Mail, an email to an invalid domain (syntactically valid) name returned "success"... Running mailq at the command prompt gives me: "(Host or domain name not found. Name service error for name=activeagenda.org type=MX: Host not found, try again)" Basically, I'd like my PHP script to know of issues like these. TIA for any suggestions. Mattias Thorslund

« previous php.general (#230992) next »