I'm trying to put together a site that uses an auto response email to new members that register. The system works perfectly. I want to change the text color of the mail and the background of the letter from white to another color. I know how to change the text but how do I change the color of the background?

This is what I am working with. Thanks to anyone that can help.

$subject="Your Membership at MySite.com";
$message="Hello $username,
Thankyou for registering at our website, http://www.MySite.com!

You are two steps away from logging in and accessing our member area.

Once you activate your membership, you will be able to login
with the following information:
Username: $username
Password: $random_password

To activate your membership,
please click here: <a href=\"http://www.MySite.com/activate.php?id=$userid&code=$db_password\">[url]http://www.MySite.com[/url]</a>

Thankyou,
MySite.com

This is an automated response, please do not reply";

mail($email, $subject, $message,
"From: MySite Webmaster<admin@MySite.com>\n
x-mailer: php/".phpversion());

    Your question is not really a PHP question, you just need to learn how html email works. I don't know, but it's probably something like <body bgcolor="blue"> just like regular html. Anyway, just search for stuff about that you'll probably find it.

      Write a Reply...