Thanks Ken,
Here's my code. I'm contacting my web host now to check mail settings.
Again, this code seems to be sending email ok, but the recipients at
the aliases aren't all receiving them. They do receive emails when
sent directly to the alias through outlook, not the form.
Thanks so much in advance!!
$msg = "A new message from the xx.com web form has arrived \n\n";
$msg .= "From: $from $email \n";
$msg .= "Comments: $comments \n\n\n";
$msg .= "Addres: $address \n";
$msg .= "Daytime Telephone: $dayphone \n";
$msg .= "Evening Telehone: $eveningphone \n\n";
$msg .= "Sample CD: $samplecd \n\n";
#$msg .= "IP: $ip \n";
/* Setup your Subject and Message Body */
$subject="xx.com Web Contact $from";
$body=stripslashes($msg);
/* Specify your SMTP Server, Port and Valid From Address */
ini_set("SMTP","mail.xx.com");
ini_set("smtp_port","25");
ini_set("sendmail_from","Richard Kennedy <[EMAIL PROTECTED]>");
/* Additional Headers */
$headers .= "Reply-to:$email <$email>\r\n";
if(mail('[EMAIL PROTECTED]', $subject, $body, $headers) &&
mail('[EMAIL PROTECTED]', $subject, $body, $headers)){
echo "<h2>Your Message was sent!</h2>";
}
else{
echo "<h2>Your Message Was Not Sent!</h2>";
}
The php_mysql group is dedicated to learn more about the PHP/MySQL web database
possibilities through group learning.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php_mysql/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/