Hi JPD
Thank you sooo much. I finally got it working. The Password lookup and even a Welcome mail send to the New User right after login. Just in case somebody searches the DB for something like it here's a working snippet for Unix ( Red Hat Linux ) for the Welcome mail. IN db.cgi sub_signup right after &html_signup_success
Code:
open (MAIL, "|$mail_prog -t");
print MAIL "To: $in{'email'}\n";
print MAIL "Reply-to: you\@yourserver.com\n";
print MAIL "From: you\@yourserver.com\n";
print MAIL "Subject: Thanks for signing up !\n";
print MAIL "\n\n";
print MAIL "Welcome to whatever. Please make sure to write down\n" ;
print MAIL "your Login name and password. They are Case sensitive !\n" ;
print MAIL "\n" ;
print MAIL "In case you forget them, we have a lookupform on our Website.\n" ;
print MAIL "\n" ;
print MAIL "If you are happy with our Service we would appreciate if you spread the word ;-).\n" ;
print MAIL "\n" ;
print MAIL "Should you have any questions about our Website or the offered Service, please\n" ;
print MAIL "do not hesitate to contact us by either replying to this mail or sending a mail\n" ;
print MAIL "to the above address.\n" ;
print MAIL "\n\n";
close (MAIL);
at the top of db.cgi you have to add the path to your sendmail program ..something like
Code:
#!/usr/bin/perl
$mail_prog = '/usr/sbin/sendmail' ;
#
# ----------------------
# DBMan
Thanks again JPD ! Now the next task will be getting a cup of Earl Grey ( seems it helped a lot
) and then see if DBMAN can handle it.
Cheers
Broder
[This message has been edited by Broder (edited March 02, 1999).]