I am trying to send this user information inserted by a user in an HTML form to my email address using php:
$to = "my_email@yahoo.com";
$subject = "Delete Listing";
$email = $_REQUEST['Email'] ;
$message = $_REQUEST['Filename'] && $_REQUEST['reason'];
$headers = "From: $email This File needs to be removed in 48 hrs.Please review it and act accordingly.";
$sent = mail($to, $subject, $message, $headers) ;
if($sent)
{print "Your mail was sent successfully"; }
else
{print "We encountered an error sending your mail"; }
But I think I am not sure about using two $_REQUEST at the $message...that's why am getting the error in sending the email. (The else part gets executed "We encountered an error sending your mail")