Page 1 of 1

Sending a HTML mail to my email

Posted: Fri Aug 10, 2007 9:57 am
by clodagh2000
Hi,

How are you all? I have a file created that reads in all the names and email addresses of loads of people, and stores them in a database. I then created another file in php that reads in each name and email address from the database and sends an email to each one. The message in the email is very long, and I put line breaks (<br>) in it. Unfortunately when a recipient recieves the email, the '<br>' tag is showing in the email.

How would I Get rid of the <br> tag showing in the email.

From a confused programmer!

Posted: Fri Aug 10, 2007 10:16 am
by SidewinderX
Use \n rather than <br />

Posted: Fri Aug 10, 2007 12:53 pm
by Chris Corbyn
Set the Content-type header to "text/html" for your email ;)