Hi,
I am trying to send a plain text e-mail, but I need to print the values of some of the variables in the e-mail and them I'm trying to read it in line by line. Doe that make sense? A few blocks of code should help explain.
For example, here's part of the .php file that I'm reading in, to create the message portion of the e-mail:
Full Name : <?= stripslashes($RequestedBy) ?>
Company : <?= stripslashes($RequestedByCompany) ?>
Street Address 1 : <?= stripslashes($RequestedByAddress) ?>
And then I try to read that in line by line like this:
$content = file("customer_email.php");
while($line = each($content))
$message .= $line["value"];
However, the e-mail I receive looks exactly like the original code:
Full Name : <?= stripslashes($RequestedBy) ?>
Company : <?= stripslashes($RequestedByCompany) ?>
Street Address 1 : <?= stripslashes($RequestedByAddress) ?>
So, how can I read in the .php file line by line and print the values of those variables in the e-mail?
Thanks