Hello All
Well, I guss it good that I am posting here, moved out of the Install Forum.
I have set up an auto reply to a form. I can get it to work if I use a specific "Email To" address. But if I put in the field name, nothing happens.
I am including the script that I added to the cfg, and pl file
In the cfg file:
# Added by David Breddam
# Full path to sendmail on your system
$mailprog = "|/bin/sendmail -t -oeq";
# Your email address
$db_email_field = 'Email';
# Admin Email address
$admin_email = 'you@yourserver.com';
# Additon Ended
and in the pl file;
in the sub html_add_success {
#Added by David Breddam - email option
%rec = &get_record($in{$db_key});
open (MAIL, "$mailprog") or &cgierr("Can't start mail program");
print MAIL "To: $db_email_field\n";
print MAIL "From: $admin_email\n";
print MAIL "Subject: Record Added\n\n";
print MAIL "-" x 75 . "\n\n";
print MAIL "Put the text of the message you want in here.
You can have more than one.....
#Addition Complete
all the files are available in TEXT format at: www.breddam.com/dbman
David Breddam
dbreddam@uniserve.com
Well, I guss it good that I am posting here, moved out of the Install Forum.
I have set up an auto reply to a form. I can get it to work if I use a specific "Email To" address. But if I put in the field name, nothing happens.
I am including the script that I added to the cfg, and pl file
In the cfg file:
# Added by David Breddam
# Full path to sendmail on your system
$mailprog = "|/bin/sendmail -t -oeq";
# Your email address
$db_email_field = 'Email';
# Admin Email address
$admin_email = 'you@yourserver.com';
# Additon Ended
and in the pl file;
in the sub html_add_success {
#Added by David Breddam - email option
%rec = &get_record($in{$db_key});
open (MAIL, "$mailprog") or &cgierr("Can't start mail program");
print MAIL "To: $db_email_field\n";
print MAIL "From: $admin_email\n";
print MAIL "Subject: Record Added\n\n";
print MAIL "-" x 75 . "\n\n";
print MAIL "Put the text of the message you want in here.
You can have more than one.....
#Addition Complete
all the files are available in TEXT format at: www.breddam.com/dbman
David Breddam
dbreddam@uniserve.com