I'm using mail() to send a message for a custom script. I finally got it working fine in text-only form. I used this to make sure it was less than 70 chars as per the php documentation
Then I realized though I would really like to add bold and italics. I did more research and added the appropriate headers:
When I viewed the email however, there were a lot of linebreaks way before 70 characters, even though in my code there was no <br/> OR \n in that particular spot
1. If I use mime, do I need to include \n in my message, or only breaks. maybe they were conflicting?
2. When I use mime, do I need to use wordwrap function or can html emails have lines over 70 chars
PHP:
$message = wordwrap($message, 70);
Then I realized though I would really like to add bold and italics. I did more research and added the appropriate headers:
PHP:
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
When I viewed the email however, there were a lot of linebreaks way before 70 characters, even though in my code there was no <br/> OR \n in that particular spot
1. If I use mime, do I need to include \n in my message, or only breaks. maybe they were conflicting?
2. When I use mime, do I need to use wordwrap function or can html emails have lines over 70 chars