email - PHP Mail Error "The Page at X Says: E-Mail can not be sent!" -


i have simple contact page set form , sending details via email using php mail() function.

when submit page works fine , email sends data no problems.

however once has done popup in browser says:

"the page @ (address) says: e-mail can not sent!"

even though message not true , email sends fine need stop appearing halts page's execution , no more code ran after this. can't seem find error on google.

here mail code anyway in case me causing it.

$headers  = "from: ".$email."\r\n"; $headers .= "content-type: text/html; charset=iso-8859-1\r\n"; $msg = '  <html>  <body>  <strong>enquiry www.mysite.com website</strong><br /><br />  <strong>name:</strong> '.$fullname.' <br />  <strong>email:</strong> '.$email.' <br />  <strong>phone:</strong> '.$phone.' <br />  <strong>message:</strong> '.$message.' <br />  <strong>group size:</strong> '.$groupsize.' <br />  <strong>date from:</strong> '.$dayfrom.' '.$monthfrom.' '.$yearfrom.' <br />  <strong>date to:</strong> '.$dayto.' '.$monthto.' '.$yearto.' <br />  <strong>meals required:</strong> '.$mealsrequired.' <br />  <strong>lift pass required:</strong> '.$liftpassrequired.' <br />      <strong>equipment required:</strong> '.$skirequired.' <br />  </body>  </html>  '; 

mail($sendto, $subject, $msg, $headers);

cheers

it looks if it's error part of page, javascript. i'd through js see if there pertaining error there. error looks part of php, php server side, not client side, cannot trigger errors.

if have js runs near or when mail sent, have through errors may throwing up.

james


Comments

Popular posts from this blog

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -