Gossamer Forum
Home : Products : DBMan : Customization :

automatic e-mail notification

Quote Reply
automatic e-mail notification
I attempted to use the code that you gave to Petz (March 11,1999 posting). but all i get is errors. http://www.carcorral.com/dbevent is the directory of the scripts. I changed the attributes to 777 for you to view. My add listing page is located at: http://www.carcorral.com/dbevent/db.cgi?db=default&uid=default&add_form=1
I don't believe it's bad html or anything because i have the exact html.pl (minus the e-mail notification script) at http://www.carcorral.com/dbevents/db.cgi?db=default&uid=default&add_form=1

Please advise.
Quote Reply
Re: automatic e-mail notification In reply to
The first thing I see is the following:

Code:
<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000EE" VLINK="#551A8B"
ALINK="#FF0000">|;

open (MAIL, $mailprog) &#0124; &#0124; &cgierr( "Can't start mail program");
print MAIL "To: $admin_email\n";
print MAIL "From: $admin_email\n";
print MAIL "Subject: New Addition\n\n";
print MAIL "[whatever you want to say to yourself];
close MAIL;

#<!-- Start top logo Menu -->
print qq|<CENTER>

You need to add the characters that are in bold print above.

I also changed what happens if there's an error. This is something I should have done before.

You can just copy the code above and paste it into your html.pl file -- except be sure that you take out the space between the two |s that UBB will stick in.


------------------
JPD