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


PHP
<?php
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 = "varalakshmi.kali@gmail.com";
   $headers = "'From: '$temail";
    $subject = 'Test email';
     @mail( $Sendto, $subject, $tmessage, $headers );
?>

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

1 solution

You should check the result of the call to @mail. See also http://www.w3schools.com/php/php_ref_mail.asp[^].
 
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