0

-PHP Mail does not function properly when the subject or body is a variable. For example:

//Works
mail("[email protected]","Subject","Message");

//Does not work
$email = "[email protected]";
$subject = "Subject";
$message = "Message";
mail($email,$subject,$message);

-How can I make this work as I am sending the email taking details from a form.

0 Answers0