Hi Folks, i have a form that sends contact information to a db, then i have one confirmation email sent and one email sent to the admin.
The db insert and the confirmation email work fine, however the email to admin doesnt ....well, arrive. Ive used
The strange thing is, if i replace the admin email address to my domain (that is differant to the 'domain.com', it works....Code:$query = "INSERT INTO ccctact (first, sur, email, tel, message) VALUES ('$firstname', '$surname', '$email', '$tel', '$message')"; $result = mysql_query($query) or die(mysql_error()); if (mysql_affected_rows() == 1) { // Send the E-Mail $body = "auto reply message"; $body2 = "Name:$_POST[firstname] \n\n Surname:$_POST[surname] \n\n Email:$_POST[email] \n\n Tel:$_POST[tel] \n\n Message: $_POST[message] \n\n "; mail($_POST['email'], 'NO_REPLY: Contact via website', $body, 'From: NO_REPLY@domain.com'); mail('admin@domain.com', 'Contact Via website', $body2, 'From: NO_REPLY@@domain.com');
Is there somthing wrong with my script, or do you think its an issue with the host?
........thanks in advance





Bookmarks