Hi,
I'm trying to use the "Send Email Notice Depending On A Select Field Chosen" code, as found in
the Unofficial FAQ (http://webmagic.hypermart.net/dbman/email26.txt).
Per the FAQ, I've set up a series of variables in my .cfg file, like so:
$maint_email{'Shop A'} = 'joe@ShopA.com';
$maint_email{'Shop B'} = 'fred@ShopB.com';
and so on.
Then, in sub html_add_success, I have changed the email
notification code from:
print MAIL "To: $maint_email\n";
to:
print MAIL "To: $maint_email{$rec{'MaintenanceContacts'}}\n";
However, the email address identified in the .cfg file for the MaintenanceContacts
is not being pulled into the address, and the mail is not sent.
If anyone can illuminate my problem here, I'd appreciate it very much!
thanks,
-rckeller
"I can think of no more stirring symbol of Man's humanity to man than a Fire Engine."
I'm trying to use the "Send Email Notice Depending On A Select Field Chosen" code, as found in
the Unofficial FAQ (http://webmagic.hypermart.net/dbman/email26.txt).
Per the FAQ, I've set up a series of variables in my .cfg file, like so:
$maint_email{'Shop A'} = 'joe@ShopA.com';
$maint_email{'Shop B'} = 'fred@ShopB.com';
and so on.
Then, in sub html_add_success, I have changed the email
notification code from:
print MAIL "To: $maint_email\n";
to:
print MAIL "To: $maint_email{$rec{'MaintenanceContacts'}}\n";
However, the email address identified in the .cfg file for the MaintenanceContacts
is not being pulled into the address, and the mail is not sent.
If anyone can illuminate my problem here, I'd appreciate it very much!
thanks,
-rckeller
"I can think of no more stirring symbol of Man's humanity to man than a Fire Engine."