I am sending emails using the mail(). When using var’s in the subject it should print the data in the var’s. Such as Hello $EDFName $EDLName, should print “Hello Billy Bob,” not “Hello $EDFName $EDLName,” like it is. Both $EDFName and $EDLName contains the data, also If it didn’t it would just print “Hello ,”. So I am obviosly doing sothing to cause it to not be phrased as data. Thanks in advance for any assistence, Im sure it is somthing simple.
Here is my code:
[php]
$To = $EDEmail;
$HTo = “$EDFName $EDLName <$EDEmail>”;
$Subject = “$FSubject”;
$Message = “$DAEmailBody”;
require("$ScriptPathAI/Email.php");
[/php]
The To is working fine All the var’s above are comming from a database query.
Email.php contains:
[php]
$Headers = “MIME-Version: 1.0rn”;
$Headers .= “Content-type: text/html; charset=iso-8859-1rn”;
$Headers .= “To: $HTorn”;
$Headers .= “From: $HFromrn”;
mail($To, $Subject, $Message, $Headers);
[/php]
Thank You.