problem with mail() - "failed to connect" error
Posted: Wed Jun 26, 2002 12:24 pm
Here is my script for sending an email to a new user after they register:
This is the error message I get:
Warning: Failed to Connect in c:\program files\apache group\apache\htdocs\eq_register.php on line 101
Anybody know why?
Code: Select all
$eaddress = $email;
$subject = "blablabla";
$msg = "<html><head></head><body bgcolor="#ffffff">
<font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#006699">Hi $username!<br><br>
blablabla<br><br></body></html>";
$headers = "From: me@somewhere.edu\nContent-Type: text/html";
mail($eaddress, $subject, $msg, $headers);Warning: Failed to Connect in c:\program files\apache group\apache\htdocs\eq_register.php on line 101
Anybody know why?