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
-
magento.stackexchange.com/questions/198838/… try this link – Ravindrasinh Zala Jan 30 '18 at 4:19
-
i want to change the validation of default file – Monu Kumar Jan 30 '18 at 4:21
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");
}
?>