This is part of the script that I am using to mail a form:
// The subject the sent mail should have.
$defSubject = "Senior Index";
// The body template for the sent mail.
// ie. %firstname% is used to print the value of the form element named firstname
$defTemplate = "%lastname%, %firstname%\nFavorite High School Memories: %favorite_high_school_memories% 9th: %9th% 10th: %10th% 11th: %11th% 12th: %12th% Favorite quote: %favorite_quote% Future Plans: %future_plans% ";
What I am trying to do is have the form field “lastname” be the subject of the email that is being sent. I have tried:
$defSubject = "%lastname%";
but it does not work. The script that I am using is phpEasyMail if that is of any help.