I am having trouble getting the subject and from headers to work in my email. I am doing this within a loop and the variables echo correctly in the loop, but they do not work with the mail function.
$mail_to = $address;
$subject = "Survey Passcode";
$body = "This code $password is your pass code to log on to the MSUM survey at http://test.cyberduck.com/survey/login.html";
$from = "kody@kodyhagen.com";
echo "<br>mail_to $count<BR>";
echo "<br>subject $subject<BR>";
echo "<br>from $from<BR>";
echo "<br>body $body<BR>";
mail("$mail_to","$subject","$body","From: $from\r\n");
I checked the forum and archives and tried the different things I found there but still no go.
Thanks,
Kody