Solved

Get email status from the server

Posted on 2006-11-29
5
214 Views
Last Modified: 2007-02-05
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
0
Comment
Question by:justaphase
5 Comments
 

Expert Comment

by:Dutchy_
ID: 18038516
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
 
LVL 11

Accepted Solution

by:
ch2 earned 500 total points
ID: 18038621
<< 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
 
LVL 1

Author Comment

by:justaphase
ID: 18113999
Thx, i will try that.
Sorry for taking to much time to answer..
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question