Instead of re-reading your template file each time (remember - disk I/O is expensive), read the template once and then manipulate a copy for each email you send. Take a look at the following (very rough code)...
$sendthis = <FILE>; foreach my $mailrecord (@list_of_addresses_and_names_etc) { my $msg = $sendthis; # manipulate the $msg and send }
In reply to Re: Re: Re: Replacing a [TAG] in a Email Template
by pinetree
in thread Replacing a [TAG] in a Email Template
by lisaw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |