It is necessary to insert in the title of the letter
Disposition-Notification-To: '.$email.' или X-Confirm-Reading-To: '.$email.'

The handler itself ends like this

 $headers = 'From: '.$From.' <'.$email.'>'; $headers .= 'MIME-Version: 1.0'; $headers .= 'Content-type: text/html; charset=windows-utf-8'; mail($to, $subject, $message, $headers); 

Something does not work for me, draw me as it should or offer an alternative version - how to notify that the letter was read?

Closed due to the fact that off-topic participants Dmitriy Simushev , Streletz , Bald , Denis , user194374 2 Sep '16 at 7:57 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - Dmitriy Simushev, Streletz, Bald, Denis, Community Spirit
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • It is not worth minus and even more to close such questions only for a poor initial implementation. The question itself is perfect for this site, and a detailed answer to it will help many programmers. - Ipatiev
  • I see no reason to edit the "Question" because the task is clear ... it either works or not))) and we are all looking for the code that works ... if we cannot write (the citation principle) someone writes uses written for quotes - Kenno

1 answer 1

  1. according to the documentation :

    Several additional headers should be separated by CRLF (\ r \ n)

    Ie, based on the style you applied, you should write something like this:

     headers = 'первый добавочный заголовок\r\n'; headers .= 'второй добавочный заголовок\r\n'; 

    and so on.

  2. even if you form all the headings quite right, you should not expect to receive a “notice of reading”. for this, your respondent’s mail client must: a) be able to do this and b) be configured to do so. My personal experience and common sense suggest that such a combination is quite rare.
  • This is a bad answer to the question. He teaches the author of a specific question, but does not give any help to a person who came from Google at the request of php mail notification of reading - Ipatyev
  • @ Ipatiev, I will only be glad if you write a more useful answer. - aleksandr barakin
  • I know about CRLF (\ r \ n) and I would write with a similar end of lines in the header, but the code was copied from a very popular paid CMS ... and I have a rule "if it works, then we don’t fix it" because you can write that anything (browsers go smart read correctly what is written crookedly) - Kenno