phpList supports the substituting of attributes into your messages recorded from your subscribers by using [ATTRIBUTE]
tags in the content of the message.
It doesn't, however, support this in message subjects. A personalized e-mail subject line goes a long way towards engaging your readers, so let's modify phpList to perform the same attribute substitution in the subject line.
Open admin/sendemaillib.php
and look for the following stanza, around line #757:
if (!TEST) { if ($hash != 'forwarded' || !sizeof($forwardedby)) { $fromname = $cached[$messageid]["fromname"]; $fromemail = $cached[$messageid]["fromemail"]; $subject = $cached[$messageid]["subject"]; } else { $fromname = ''; $fromemail = $forwardedby['email']; $subject = $GLOBALS['strFwd'].': '.$cached[$messageid]["subject"]; }
This is the logic that decides whether an e-mail is being sent to a subscriber or being forwarded to a third party by a subscriber. Instead of interfering with this...