Here $msg
and $subject
are the variables getting values from the form. When the submit button is clicked, mail()
function is to be called.
But there is a warning displayed:
Warning: mail(): Failed to connect to mailserver at "`" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\wamp\www\abhishek\wp-content\themes\abhishek\career.php on line 18.
Here is my code:
$msg=$_POST['msg'];
$subject=$_POST['subject'];
mail('email@example.com',$subject,$msg);