This is possible but will take some work. The script to modify is
nph-email.cgi, sub main. Look for this code, which is the area you would need to work in:
Code:
# If from newsletter, we go through the form input, and mail to each user.
foreach $address (@address) {At this point, you would have to include code to check and see if the address matches the email address you want to include additional information for. If so, you open the file, and read the information into the $message variable, something like this:
Code:
if ($address eq "bob\@bob.com") {
OPEN (FILE "</path/to/data.txt") or &cgierr("Can't open data.txt, reason: $!");
while (<FILE>) {
$message .= $_;
}
CLOSE FILE;
}You might need a series of these if there are multiple addresses you want to include additional information for. If the same data.txt file would be used for all of the "selected" addressees (but not "all" addressees), you could modify the
if statement above to include them, such as:
Code:
if ($address =~ "bob\@bob.com|jim\@jim.com|bill\@bill.com") {I hope this helps.
- Bobsie
bobsie@orphanage.com http://goodstuff.orphanage.com/