redarrow Posted June 10, 2008 Share Posted June 10, 2008 Advance thank you... Hi there the problam is the first mail will not send but the secound does very weired......... <?php $mess="<center><h1> NEW $enquire_type ENQUIRE</h1></center><br><br> Name: $name <br><br> Telephone Number: $telephone <br><br>Client Email: $email <br><br> client's enquire notes: $notes"; $to = 'admin@what_ever.co.uk'; $subject = 'Enquire off $enquire_type'; $message = $mess; $headers = "From: Enquire@what_ever.co.uk\r\n" . 'X-Mailer: PHP/' . phpversion() . "\r\n" . "MIME-Version: 1.0\r\n" . "Content-Type: text/html; charset=utf-8\r\n" . "Content-Transfer-Encoding: 8bit\r\n\r\n"; if(mail($to, $subject, $message, $headers)){ echo"<br><br><br><br>Thank you $name for sending mail to us,<br>W e will get back to you shortly!<br><br>"; $mess1="<br><br>Hi there $name, We are dealing with your enquire $enquire_type <br><br> We will contact you via $telephone shortly <br><br> thank you for using us at www.what_ever.co.uk<br><br>"; $to1 = $email; $subject1 = 'Your Enquire '.$enquire_type.' Note!'; $message1 = $mess1; $headers1 = "From: admin@what_ever.co.uk\r\n" .'X-Mailer: PHP/' . phpversion() . "\r\n" . "MIME-Version: 1.0\r\n" . "Content-Type: text/html; charset=utf-8\r\n" . "Content-Transfer-Encoding: 8bit\r\n\r\n"; mail($to1, $subject1, $message1, $headers1); exit; }else{ echo"<br><br>Sorry where having problams with your email address <br><br> $email <br><br> Please cheek yo ur email address and send agin thank you!....<br><br>"; exit; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/109653-mail-sends-secound-mail-not-the-first/ Share on other sites More sharing options...
webent Posted June 10, 2008 Share Posted June 10, 2008 Just curious if you tried getting rid of all the special characters and variables in the second one and just put in some simple test static data, if it still doesn't send? Quote Link to comment https://forums.phpfreaks.com/topic/109653-mail-sends-secound-mail-not-the-first/#findComment-562605 Share on other sites More sharing options...
redarrow Posted June 10, 2008 Author Share Posted June 10, 2008 solved sorry all worked dam php4 server....... Quote Link to comment https://forums.phpfreaks.com/topic/109653-mail-sends-secound-mail-not-the-first/#findComment-562641 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.