I had a similar problem with a similar form - my problem was more intermittent - sometimes mail would work to all addresses, other times not. I finally boiled my problem down to an issue with the body of the message - longer bodies would not go through, short ones would - I learned that some mail programs have issues with the width of the actual message - I added 1 line of code to wordwrap the body of the message
wordwrap($body, 70); and I no longer have problems. YMMV with Best Regards, Mike ----- Original Message ----- From: Kennedy To: [email protected] Sent: Thursday, March 30, 2006 8:59 AM Subject: Re: [php_mysql] Re: mail trouble 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 a.. Visit your group "php_mysql" on the web. b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. ------------------------------------------------------------------------------ [Non-text portions of this message have been removed] 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/
