Gossamer Forum
Home : Products : DBMan : Installation :

email when add records, modify records or delete records

Quote Reply
email when add records, modify records or delete records
Is there a way to send an automatic mail to the user after user took action like delete, add, modify?
Thanks
Quote Reply
Re: email when add records, modify records or delete records In reply to
Sure. There are a number of ways. A lot depends on how your database is set up. For one major thing, are you using the password lookup mod so that the email address is in the password file, or is the email address only in the record?



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





Quote Reply
Re: email when add records, modify records or delete records In reply to
The database I want the responding mail from is only accessable by userid/password.
The email-address will be in a database-field after adding a record.
So when anyone is entering a new reccord, deleting or modifying, he should get a mail.
Quote Reply
Re: email when add records, modify records or delete records In reply to
Sending an email when a record is added or modified is pretty easy to do. Just set up a routine in html_add_success and html_modify_success. There's instruction all over the forum for how to send email.

Sending an email when a record is deleted, though is a bit more of a problem. By the time the script gets to html_delete_success, the email address will have vanished forever. In order to do it, you'll have to do a bit of work within db.cgi, sub delete_records.


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