0

When I am sending the form detail It work.but do not receive the Email.I set the email like sale@example.uk when I set it like sale@example.com it work. I think problem is .uk and .com domain name.can any one tell me how to solve .

0

Now first check simple mail send or not

<?php
$to = "you@youraddress.com";
$subject = "Test email";
$message = "This is a test email.";
$from = "from@fromaddress.com";
$headers = "From:" . $from;
if (mail($to, $subject, $message, $headers)) {
    echo("Your message has been sent successfully");
    } else {
    echo("Sorry, your message could not be sent");
}
?>
  • which default file I use this code – Monu Kumar Jan 30 '18 at 4:29
  • and my email address from@fromaddress.uk – Monu Kumar Jan 30 '18 at 4:30
  • root folder create php file and check it. – Ravindrasinh Zala Jan 30 '18 at 4:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.