I have the following mail.php file :
<?php
$name = $_POST['name'];
$to = $_POST['to'];
$from = $_POST['from'];
$subject = $_POST['subject'];
$message = "From: ".$name."\r\n";
$message .= $_POST['message'];
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
?>
I have following layout to send mail from my app:
I want to send mail to static mail eg: [email protected] after clicking send button.
How can i send mail by calling above php file.
I heard about post method to call above php file
But dont have any idea about it.
Help Please !