Hi all,
I want to echo two variables inside the body of automatic email. i am trying to get those two variables from the form that customer just submitted. i am posting my code below, please help ASAP. Thanks in advance
<?php
if(isset($_POST['button_pressed']))
{
$to=$Email;
$subject='Hi There!!';
$body='Hi'; $Title . '' . $Surname; ',
This is a demo email sent using PHP on XAMPP';
if (mail($to,$subject,$body)){
echo 'Mail sent successfully!';
}
else{
echo 'Mail not sent!';
}}
?>