Doc #81158 [Com]: Mails sent by mail function broken since PHP 8.0
[email protected] ("myfedloan dot one at gmail dot com") Sat, 20 May 2023 18:30:53 +0000
| Newsgroups | php.doc.bugs |
|---|---|
| Message-ID | <[email protected]> |
Edit report at https://bugs.php.net/bug.php?id=81158&edit=1 ID: 81158 Comment by: myfedloan dot one at gmail dot com Reported by: php at shyim dot de Summary: Mails sent by mail function broken since PHP 8.0 Status: Open Type: Documentation Problem Package: Mail related Operating System: Debian 10 (Docker) PHP Version: 8.0.7 Block user comment: N Private report: N New Comment: Thanks for the information, I will try to figure it out for more. Keep sharing such informative post keep suggesting such post. https://www.myfedloan.one/)github.com Previous Comments: ------------------------------------------------------------------------ [2023-05-04 04:59:51] paybyplatema dot website at gmail dot com Thank you. Your example didn't work for me but I managed to fix it, which was basically the same thing! https://www.paybyplatema.website/)github.com ------------------------------------------------------------------------ [2023-05-04 04:58:50] paybyplatema dot website at gmail dot com Nice post! We do our best to stay compliant. We don't need issues. https://www.paybyplatema.website/github.com ------------------------------------------------------------------------ [2023-03-29 22:01:42] myjohnjdf at gmail dot com The information you have posted is very useful. The sites you have referred was good. Thanks for sharing. (https://myjdfaccount.top/)github.com ------------------------------------------------------------------------ [2023-03-24 16:15:51] centurasite at gmail dot com Thanks for sharing it, it is certainly helpful. Keep on sharing such stuff. (https://mycenturahealth.site/)github.com ------------------------------------------------------------------------ [2022-12-22 10:48:37] Rester256Walsh at gmail dot com Add a mail header in the mail function: $header = "From: [email protected]\r\n"; $header.= "MIME-Version: 1.0\r\n"; $header.= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $header.= "X-Priority: 1\r\n"; $status = mail($to, $subject, $message, $header); if($status) { echo '<p>Your mail has been sent!</p>'; } else { echo '<p>Something went wrong. Please try again!</p>'; } (https://www.mycenturahealth.us/)github.com ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=81158 -- Edit this bug report at https://bugs.php.net/bug.php?id=81158&edit=1