Solved

Get email status from the server

Posted on 2006-11-29
5
237 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

717 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