Problem with the php mail ()

<?php $email=""; $name=""; $massage=""; $txt=""; if(isset($_POST['send'])) { $email=$_POST["email"]; $name=$_POST["name"]; $massage=$_POST["massage"]; } $from=$email; $to="sara.marix@gmail.com"; //$to = $email; $subject = "Test Mail"; $txt.= $name; $txt.= $massage; $headers = "Esoft Metrocampus"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'From: Your name ' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; mail($to, $subject, $txt, $headers); echo ("Email Send Success"); ?>

when i submit the form it says Success. but i do not receive any email.

1 Like

It could be that our mailing service are blacklisted

so how can i get over this?

Wait it out or use PHPMailer

1 Like