I use PHP mail() to send daily notifications.
But I noticed that if the line in which the mail content is stored is too long, the message will be interrupted, i.e. only parts of the content in received messages will be displayed.
When the content line is short, the message will be filled. Thus, it seems that PHP has some restrictions on the length of the string.
I tried using echo $content; to display the line in which the content is stored, the content is completed in the browser. But when the same line is sent in an email, it is interrupted.
Can anyone help me with this? Thanks in advance!
source share