What needs to be written in the E-mail headers so that the postal service processes HTML tags as tags, not text?

And also in the layout of the letter you need to write everything starting with <html>, <body> or immediately the content of the letter, i.e. everything after <body>?

Thank you in advance!

    2 answers 2

    Look at the 4th example of the mail function !

      $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
      Example: http://www.php.net/manual/ru/function.mail.php