I am sending an email from PHP mail(). Which was working nicely, But for the last two days I am not receiving an email. When I checked the code I got that when I am sending 2200 characters, email is receiving. But when I sent more than 2200 characters email is not received. But it was working nicely for the last year. The email body contains HTML data including a table.
Asked
Active
Viewed 41 times
0
-
No, PHP itself has no such limit. And even if it did, it would be much larger than 2K bytes, that would be clearly ridiculous. – Barmar Apr 16 '22 at 04:55
-
More likely a spam filter is blocking it. – Barmar Apr 16 '22 at 04:56
-
Check your MTA logs to see if it's processing the message. – Barmar Apr 16 '22 at 04:56
-
In that last two days, did you change your code? Helps to see code. – mardubbles Apr 16 '22 at 04:57
-
Don't post code in the comments: it's unreadable. Use the `Edit` button to add it to your question – Tangentially Perpendicular Apr 16 '22 at 05:23
-
[mail()](https://php.net/mail) is a very low level tool. You need to take care of all formatting details mandated by SMTP standard, including using CR+LF as line separator and obeying the 70-character per line limit. – Álvaro González Apr 16 '22 at 12:15