Php Email Interrupted If Content Exceeds Certain Limit October 27, 2023 Post a Comment I am using PHP mail() to send daily notice emails. But I noticed that if the string, which stores the content of the mail, is too long, the email will be interrupted, i.e. only paSolution 1: Try with the following script:mail($to, $subject, chunk_split(base64_encode($message), "Content-Transfer-Encoding: base64\r\n"); CopyExplanations:The email standard RFC2822 accepts only 998 chars of length per line.Email clients can read base64 encoded strings better.Cheers! Share Post a Comment for "Php Email Interrupted If Content Exceeds Certain Limit"
Post a Comment for "Php Email Interrupted If Content Exceeds Certain Limit"