Page 1 of 1

Mail format question

Posted: Tue May 25, 2004 6:53 am
by lazersam
Hi all

I am reading a message from a text file and shooting it out using the mail() function.

When the email arrives the text is unformated i.e. in one big paragraph. How do i get it to display with line breaks, paragraphs etc?

Thanks in advance...

Larry

Posted: Tue May 25, 2004 7:31 am
by hairyjim
Are you sending HTML or plain text email?

Posted: Tue May 25, 2004 8:30 am
by malcolmboston
these header allow HTML e-mails

Code: Select all

$headers  = "MIME-Version: 1.0\n"; 
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
then just use <br> as you would in normal HTML

Posted: Tue May 25, 2004 12:05 pm
by lazersam
Thanks... I was sending html messages. The <br> thing works OK. I think I'd like just to send text messages though.

Thanks for the help.

Larry.