I want to take the value of an array and define it as $message. This variable will be
called in the sendmail function mail(). Here is what I have so far. (does not work!)
Can anyone help me with this problem?
$automail = file("DOCUMENT_ROOT/BetterBus/1/AutoEmail.txt");
$number_of_lines = count($automail);
for ( $i=0; $i<$number_of_lines; $i++)
{
$auto = explode("\n", $automail[$i]);
echo $auto[0]."\n";
}
$to = $EMAILADDRESS
$subject = "Thank You for your submission!";
$message = eval($automail);
$fromaddress = "[EMAIL PROTECTED]";
mail($to, $subject, $message, $fromaddress);