php file isn't executing to mail -



php file isn't executing to mail -

i've written code below help on net , working long time till recantly. had issues: 1- when working: received every day email inbox code. 2- 1 day didn't received mail service , the code didn't respond when submitted form. can see wrong? couldn't find anything

<?php $name = $_post['name']; $phone = $_post['phone']; $mail = $_post['mail']; $msg = $_post['msg']; $message = <<<eod ----- name: $name phone: $phone mail: $mail msg: $msg ----- eod; $subject = 'הודעה חדשה מלקוח'; $to = 'yehiel.amar@gmail.com'; $headers = "from: $mail\r\n"; $headers = "content-type: text/html\r\n"; mail($to,$subject,$headers,$message); $theresults = <<<eod <html> <head> <meta charset="utf-8"> <meta name ="viewport" content="width=device-width, initial-scale=1.0"/> </head> <body> <div> <h2 style="text-align:center; color:white;padding-top:10px;">!ההודעה נשלחה<h2> <h3 style="text-align:center; color:white;">נצור עמך קשר בהקדם<h3> <a href="index.php"><h3>חזרה</h3></a> </div> </body> </html> eod; echo "$theresults"; ?>

any help blessed thanks!!

php

Comments

Popular posts from this blog

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -