macros are now automatically processed on every email sent.

This commit is contained in:
JT Smith 2003-02-01 22:38:58 +00:00
parent 4b2e5a164b
commit 3f2d2c63f9

View file

@ -90,7 +90,9 @@ sub send {
#body
$message .= $_[2]."\n";
#footer
$message .= "\n".WebGUI::Macro::process($session{setting}{mailFooter});
$message .= "\n".$session{setting}{mailFooter}
#process macros on message
$message = WebGUI::Macro::process($message);
if ($session{setting}{smtpServer} =~ /\/sendmail/) {
if (open(MAIL,"| $session{setting}{smtpServer} -t -oi")) {
print MAIL $message;