I am trying to make a simple script to send emails to members of my site and I want to use HTML for the email message I send. I create an email message in HTML and call it "enews.txt" My code works ok and the email gets sent in HTML (fonts, font colors, etc are good) but the background image for my email does not get included. (I use an image file that is in the root directory and use that as my "background" file when I create the email.)
$mail_subject = "My Subject Goes Here";
$to_address = $line;
$headers = "From: [email]Me@myserver.com[/email]\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
if(!mail("$to_address","$mail_subject", "$mail_content","$headers")) echo "<hr> Mail cannot be send <hr>";
the file "$mail_content" is an HTML file (enews.txt - basically a web page I create using a web editor)., and it all works except that the background image I include when I build the file doesn't get included when the email gets sent.
I'm sure I'm doing something wrong but can't seem to nail it down. Any help would be appreciated.
Basil