I am using inbuilt support of sending mails in php.
$status=mail($to,$subject,$message,$headers,"-f $from");
I am on LAMP server and we use sendmail Unix utility. php mail() returns true status if it has handed over the mail to sendmail so we can not be sure that whether a mail has been sent successfully of not. Now what I want is to make some socket connection between php and sendmail so that I can get the "True status" whether mail has been sent or not.
I am very new for PHP. This is the part of the first problem which I am solving in PHP. I Goggled but I am not getting exactly how to proceed further. Guide me how can I get true status whether a mail has been sent or not at PHP end?