0

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

//Works
mail("email@domain.com","Subject","Message");

//Does not work
$email = "email@domain.com";
$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