Email Table Events? |
4/7/2006 10:36:22 PM |
ASPRunnerPro General questions | |
Is it possible to have an email table event that will send an email to the corresponding email address that is atored in the database? Is it also possible to include information from the databse in the email? |
|
![]() |
Sergey Kornilov admin 4/10/2006 |
you can do it using events. Function BeforeAdd(dict) message ="" keys = dict.keys For n = 0 To dict.Count-1 message = message & keys(n) & " : " & dict(keys(n)) & vbcrlf Next email=dict("email") subject="New data record" sendmail email, subject, message BeforeAdd = True End Function
|
|
Lowkeck authorDevClub member 4/10/2006 |
Will this work if the email field is located in a seperate table from the table I am adding the record? |
![]() |
Sergey Kornilov admin 4/10/2006 |
This example works when email field is located in the same table. |