Use variable in email title
Hey,
My client wants to be able to send two different 'kinds' of emails - 1. A full length newsletter 2. A brief note.
So I have a form setup with two radio buttons so he can choose which it will be. Effectively they are exactly the same, but he just wants the message subject to be different for each.
So depending which option he chooses the value is stored in the DB and then used to give the message subject.
The problem is that it's not working.
I first tried storing the values as either a 1 or a 2 and then using this code in WAUE_newsletterSend_1.php:
if ($row_getSubscribers['mailtype'] == '1') {
$MailSubject = "Ulysses Consulting 'In Brief' Note";
}
else {
$MailSubject = "Ulysses Consulting Monthly Newsletter";
}
But that didn't work so I tried storing the values as string and using:
$MailSubject = "Ulysses Consulting ".$row_UCNewsletter['mailtype'] ."";
That is not working either. The subject line just shows as "Ulysses Consulting" (without the quotes)
Any help would be greatly appreciated!
Thanks!