Hi,
I am having difficulty in adding information to a php mailer script. I have :
echo 'Name : ';
echo $_SESSION['clientname'];
echo "<br>";
if ($_SESSION['otherchoice'] == "other"){
echo "other"; echo "<br>";
echo 'Other information is : ';
echo $_SESSION['textchoice'];
echo "<br>";}
else {
echo $_SESSION['otherchoice'];
echo "<br>";}
and would like to use this as the message part of of php mail, i.e :
$message = "above code";
mail("myemail@domain.com", "$subject",
$message, "From:" . $email);
Is this possible, if not how would I go about it?
Thank you very much for your time!