Okay...to send a confirmation email message to the subscribers, try the following:
1) Put the following codes:
AFTER the following:
Code:
&site_html_mailing ('subscribe');
in your
subscribe.cgi file.
So, it should look like this:
Code:
&site_html_mailing ('subscribe');
&send_confirmation;
2) Add the following sub-routine to your
subscribe.cgi file:
Code:
sub send_confirmation {
# --------------------------------------------------------
# Send confirmation to mailing list subscribers.
# Check to make sure that there is an admin email address defined.
$db_admin_email or &cgierr("Admin Email Address Not Defined in config file!");
my $to = $in{$db_cols[$email]};
my $from = $db_admin_email;
my $subject = "Addition to $in{'Title'} Mailing List\n";
my $msg = qq|
You have been added to our database. If you have received this
message in error and would like to be removed from our mailing list,
go to the following URL:
http://www.mydomain.com/cgi-bin/subscribe.cgi
|;
# Then mail it away!
require "$db_lib_path/Mailer.pm";
my $mailer = new Mailer ( { smtp => $db_smtp_server,
sendmail => $db_mail_path,
from => $from,
subject => $subject,
to => $to,
msg => $msg,
log => $db_mailer_log
} ) or return;
$mailer->send or return;
}
You will have to edit the
$msg variable to reflect what you want to appear in the email message.
Hope this works and helps.
Note: I have not tested this. I have only checked the syntax of the codes to make sure there are no errors.
Good luck.
Regards,
------------------
Eliot Lee Anthro TECH,L.L.C
www.anthrotech.com ----------------------