Hi Ive just made my first webpage for a friend's restaurant and I have got a contact form which sends emails to two addresses (depending which subject is chosen). Everything seems OK and Im new to php so the code itself is still a little baffling, its made of a mixture of script i found on the web and some help from forums. One problem, when I test the contact sheet, only about fifty percent of the time do they actually arrive to my inbox. Why could this be? Is it a problem in the html page with the form: [a href=\"http://www.bernisnudelbrett.de/en/contact_us.html\" target=\"_blank\"]http://www.bernisnudelbrett.de/en/contact_us.html[/a] or in the coding on the php page? The code is as follows: [code]<?php $emailfield = $_POST['emailfield']; $concern = $_POST['concerning']; if ($concern == 'information') { $mailto = 'info@bernisnudelbrett.de'; } else { $mailto = 'web@bernisnudelbrett.de'; } $mailsubj = "A message from a website visitor"; $mailhead = "From: ".$emailfield; $mailbody = "A message from a website visitor:\n"; while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; } if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); } ?> [/code] Any help would be much appreciated, Ive just got PHP for dummies, but as someone who hasnt used computer language like this before, it's still a bit baffling to me. Thanks Barça