// hello Justin gain but logged in now, their is an error it is in my output, PHPbuilder didn't write the HTML code,this is it revised
Hello,
I am working on a newsletter. It will be an html email. What I want to do is this.
1. I will have a page that will have a textarea where I will write my html code.
2. On submit this will be sent to the addresses.
What is happening is that the email being sent is simply the html code.
eg of email received.
Date: Thu, 25 Jul 2002 11:38:35 -0400
To: jbgraphicdesign@yahoo.com
Subject: newsletter
From: jblayney@jrbgraphicdesign.com | Block Address | Add to Address Book
//
// <body bgcolor="#ff0000">
// Hello world</body>
//
. The php file has this code.
$msg = "$message\n";
$to = "$sender_email";
$subject = "Newsletter\n";
$mailheaders = "From: jblayney@jrbgraphicdesign.com\n";
$mailheaders .= "Reply-To: jblayney@jrbgraphicdesign.com";
mail($to,$subject,$msg,$mailheaders);
$message is the textarea where I type in the html code. Any ideas on how I can send this as an html email ?
When this problem is solved I will be linking the $to to my database to grab eveyone in it, but thats another problem,One at a time.
regards
justin