0

Possible Duplicates:
Is there a way to determine whether an e-mail reaches its destination?
PHP: Check who had read sent email?

I need a php or zend framework code which return a acknowledgment when I send a mail.
If user receives a mail, or not, or may be email is not correct, or when user open this mail; in all these cases I to get a acknowledgement.

How do I do this?

Community
  • 1
  • 1
Rajesh purohit
  • 178
  • 1
  • 8
  • Impossible to do reliably. Maybe I can find the duplicate... – Pekka Aug 25 '11 at 13:36
  • You can request delivery confirmations but they are optional for the recipient. See http://stackoverflow.com/questions/1078251/delivery-reports-and-read-receipts-in-php-mail – Pekka Aug 25 '11 at 13:38
  • I had already try this (X-Confirm-Reading-To,Disposition-Notification-To) but no effect. – Rajesh purohit Aug 26 '11 at 05:06
  • as said, there is no reliable way to do this due to the nature of E-Mail. – Pekka Aug 26 '11 at 06:31

2 Answers2

1

The only way you can know if a user opened a mail to listen for resources (images) that will download to the client (if they allow downloads) otherwise you are in the dark.

Checking the mail was sent and if the address is valid can be done but only to a certain extend the server that sends the message will report if the message could be sent but that will only be the status of the sent message on that specific server. You could setup some kind of mechanism that listens for addresses that are reported by other servers as invalid but not all the servers do this ...

You could use a third-party provider to handle the acknoweldgements for you which will lift the burden from you. Like Mailchimp but they too have limited ways to do this.

Just my 2 cents

Johann du Toit
  • 2,609
  • 2
  • 16
  • 31
0

If you want to detect the mail being opened, you will need to embed an image in the e-mail. This image is generated by a PHP url like <img src="domain.com/index.php/generate_image/123"> where 123 is the User ID you put in the e-mail so you can track which user opened that e-mail.

Chris G.
  • 3,963
  • 2
  • 21
  • 40