Click here to Skip to main content
15,439,117 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
here i am using this code

if( isset($_POST['name']) && $_POST['email'] && $_POST['country'] && $_POST['phone'] && $_POST['message'] != NULL )
  //require_once "Mail.php";
   $tname = $_POST['name'];
    $temail = $_POST['email'];
    $tcountry = $_POST['country'];
    $tphone = $_POST['phone'];
    $tmessage = $_POST['message'];
   $Sendto = "";
   $headers = "'From: '$temail";
    $subject = 'Test email';
     @mail( $Sendto, $subject, $tmessage, $headers );

message is not come to my mail.
give me correct answer.

1 solution

You should check the result of the call to @mail. See also[^].
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900