I am sending a long HTML email via php\'s mail function on my localhost. It is consistently getting cut off and I can\'t figure out why.
Here\'s the code producing t
Check your mail() method, it should include your content-type
, like:
mail($email, 'Thank You for Contacting PHPglue', $msg, "From: PHPglue@PHPglue.com\r\ncontent-type: text/html");
SMTP has a restriction on the length of lines, either 1024 or 2048 columns, I'm not sure. Put newlines (\r\n
) periodically in your body. I suggest after each </tr>
. This will have no effect on the way the table is rendered, but it should prevent the truncation.