So after a lot of testing, I discovered that PHP mail fails when there is an invalid email address in the headers. Since I am using PHP 8, and the PHP constant PHP_EOL has changed between php 7.4. and php 8.x., I followed the advice here and it worked!
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Problem with sending email by using SMTP | 34 | 114 | December 3, 2024 | |
Kanboard hosted locally - emails are not received | 17 | 1162 | April 15, 2023 | |
Mail function and php version | 2 | 631 | December 22, 2022 | |
Email invitation: invalid HTML | 6 | 116 | November 6, 2024 | |
Issue with Email (HTML) Notifications | 10 | 41 | November 19, 2024 |