Could someone take a look at this...my eyes are getting blurry! I keep getting the following error messages and mail is not sent. My php.ini is set for now to-
[mail function] SMTP=smtp.sbcglobal.net ;for win32 only
sendmail_from=dave-m@sbcglobal.net ;for win32 only
Is my syntax messed up? I still don't get the thing about headers. The manual's definition of the mail() function hasn't really helped.
Warning: Failed to Connect in C:\apache\htdocs\formail.php on line 104
Warning: Failed to Connect in C:\apache\htdocs\formail.php on line 108
//...previous line omitted to keep this brief
if ($uemail) // Check for email address
{
$umail = "Email - $uemail"; // Create a line for the email message
$message .= "$umail\n"; // Add it to the message
}
else
{
$error .= "You did not enter your e-mail address<br>\n" ; // Add to Error report if missing
}
//...the following lines are 104-108
mail("$uemail", "RJS Placement Form", $message, "From: Dave Marshall <dave-m@sbcglobal.net>");
mail("dave@sbcglobal.net", "Placement", $message, "From: $uemail");
//...
I'd really appreciate some help.