Get email status from the server

Hello experts,

When i send an email in php i use this "mail($to, $subject, $Body, $headers)".
Is there a way to know if the email was well received in the destination server?

thx in advanced
LVL 1
justaphaseAsked:
Who is Participating?
 
ch2Connect With a Mentor Commented:
<< Is there a way to know if the email was well received in the destination server?

Well, usually when a mail is not delivered the destination server sends a mail with information about the error.

If you want mail confirmation when user reads it just add this header.

$headers .= 'Disposition-Notification-To: "Myname" <mymail@mydomain.com>'


0
 
Dutchy_Commented:
As far as I know this is not possible with PHP... The only thing I can think of is setting the From:/Reply-To: headers right to receive the returned emails on that address
0
 
justaphaseAuthor Commented:
Thx, i will try that.
Sorry for taking to much time to answer..
0
All Courses

From novice to tech pro — start learning today.