Achtergrond- & fontkleuren werken niet?
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?
if ($reg_ins)
{
$name = $_POST[newuser];
$subject = "Your new Elementia account!";
$address = $_POST[email1];
$msg = "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#FFFFFF\">";
$mgs .= "<tr><td width=\"100%\" bgcolor=\"#000000\"><font face=\"Verdana\" color=\"#FF0000\" size=\"4\">";
$msg .= "======================================================<br><br>";
$msg .= "Your Elementia account needs activation!<br><br>";
$msg .= "======================================================<br><br>";
$msg .= "On the Elementia site you've created an account.<br>";
$msg .= "The only thing that needs to be done is activate it!<br>";
$msg .= "Thats done by clicking the following link:<br>";
$msg .= "<a href=\"http://82.168.14.39/index.php?page=activate&key=$key\">...Click here...</a><br><br>";
$msg .= "Logininfo:<br>";
$msg .= "Username = $_POST[newuser]<br>";
$msg .= "Pass = $_POST[pass1]<br><br>";
$msg .= "Good luck!,<br>Elementia Admins<br><br>";
$msg .= "======================================================<br><br>";
$msg .= "Thank you for playing Elementia!<br><br>";
$msg .= "======================================================<br><br>";
$msg .= "</td></tr></table>";
$header = "From: \"Elementia Admins\" <[email protected]>\r\n";
$header .= "Content-type: text/html; charset=\"iso-8859-1\"\r\n";
?>
if ($reg_ins)
{
$name = $_POST[newuser];
$subject = "Your new Elementia account!";
$address = $_POST[email1];
$msg = "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#FFFFFF\">";
$mgs .= "<tr><td width=\"100%\" bgcolor=\"#000000\"><font face=\"Verdana\" color=\"#FF0000\" size=\"4\">";
$msg .= "======================================================<br><br>";
$msg .= "Your Elementia account needs activation!<br><br>";
$msg .= "======================================================<br><br>";
$msg .= "On the Elementia site you've created an account.<br>";
$msg .= "The only thing that needs to be done is activate it!<br>";
$msg .= "Thats done by clicking the following link:<br>";
$msg .= "<a href=\"http://82.168.14.39/index.php?page=activate&key=$key\">...Click here...</a><br><br>";
$msg .= "Logininfo:<br>";
$msg .= "Username = $_POST[newuser]<br>";
$msg .= "Pass = $_POST[pass1]<br><br>";
$msg .= "Good luck!,<br>Elementia Admins<br><br>";
$msg .= "======================================================<br><br>";
$msg .= "Thank you for playing Elementia!<br><br>";
$msg .= "======================================================<br><br>";
$msg .= "</td></tr></table>";
$header = "From: \"Elementia Admins\" <[email protected]>\r\n";
$header .= "Content-type: text/html; charset=\"iso-8859-1\"\r\n";
?>
Daarin staat duidelijk dat de achtergrondkleur zwart en de fontkleur rood moet zijn. Alleen is dit niet het geval :(. Het vreemde is de mail is wel gewoon netjes HTML -> bv font is wel verdana.
Hoe los ik dit op? Of wat is er fout?
Waar is een body tag? Waar is een head tag? Waar is een html tag? Rotzooi. Prut. Niks niet nette html.
En hier geef je toch al html aan?
Content-type: text/html
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?
if ($reg_ins)
{
$name = $_POST[newuser];
$subject = "Your new Elementia account!";
$address = $_POST[email1];
$mgs = "<html><head><title>Your new Elementia account!</title></head><body>";
$msg .= "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#FFFFFF\">";
$mgs .= "<tr><td width=\"100%\" bgcolor=\"#000000\"><font face=\"Verdana\" color=\"#FF0000\" size=\"4\">";
$msg .= "======================================================<br><br>";
$msg .= "Your Elementia account needs activation!<br><br>";
$msg .= "======================================================<br><br>";
$msg .= "On the Elementia site you've created an account.<br>";
$msg .= "The only thing that needs to be done is activate it!<br>";
$msg .= "Thats done by clicking the following link:<br>";
$msg .= "<a href=\"http://82.168.14.39/index.php?page=activate&key=$key\">...Click here...</a><br><br>";
$msg .= "Logininfo:<br>";
$msg .= "Username = $_POST[newuser]<br>";
$msg .= "Pass = $_POST[pass1]<br><br>";
$msg .= "Good luck!,<br>Elementia Admins<br><br>";
$msg .= "======================================================<br><br>";
$msg .= "Thank you for playing Elementia!<br><br>";
$msg .= "======================================================<br><br>";
$msg .= "</font></td></tr></table></body></html>";
$header = "From: \"Elementia Admins\" <[email protected]>\r\n";
$header .= "Content-type: text/html; charset=\"iso-8859-1\"\r\n";
?>
if ($reg_ins)
{
$name = $_POST[newuser];
$subject = "Your new Elementia account!";
$address = $_POST[email1];
$mgs = "<html><head><title>Your new Elementia account!</title></head><body>";
$msg .= "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#FFFFFF\">";
$mgs .= "<tr><td width=\"100%\" bgcolor=\"#000000\"><font face=\"Verdana\" color=\"#FF0000\" size=\"4\">";
$msg .= "======================================================<br><br>";
$msg .= "Your Elementia account needs activation!<br><br>";
$msg .= "======================================================<br><br>";
$msg .= "On the Elementia site you've created an account.<br>";
$msg .= "The only thing that needs to be done is activate it!<br>";
$msg .= "Thats done by clicking the following link:<br>";
$msg .= "<a href=\"http://82.168.14.39/index.php?page=activate&key=$key\">...Click here...</a><br><br>";
$msg .= "Logininfo:<br>";
$msg .= "Username = $_POST[newuser]<br>";
$msg .= "Pass = $_POST[pass1]<br><br>";
$msg .= "Good luck!,<br>Elementia Admins<br><br>";
$msg .= "======================================================<br><br>";
$msg .= "Thank you for playing Elementia!<br><br>";
$msg .= "======================================================<br><br>";
$msg .= "</font></td></tr></table></body></html>";
$header = "From: \"Elementia Admins\" <[email protected]>\r\n";
$header .= "Content-type: text/html; charset=\"iso-8859-1\"\r\n";
?>
Nu is het toch wel een goede pagina?
Ik heb ook al zoveele emails via m'n website verzonden in html en van de plaats rood kwam er groen! :s
En zo veranderde elk kleur in een ander kleur!
Nu werk ik gewoon nie meer met html email ;)
Veel handiger! :D
Anders heeft HTML email weinig zin,
en vreemd dat anderen het wel kunnen dan.
Gebruik anders een 1px plaatje als bg.
En de fontcolor dan?