I have a .dll file called xp_SMTPSendMail that can be called from within an extended stored procedure and will send a formatted email to my SMTP server Mailmax 5.5.
I have an ASP script that updates a temporary table. Previously, I had a VB program that goes to the temporary table every two minutes, formats the information, sends it to the SMTP server and destroys the data in the temporary table.
I want to replace the VB program with the xp_SMTPSendMail extended stored procedure. I am considering the following:
1. Setting up a stored procedure that will run the extended stored procedure every two minutes.
2. Setting up the extended stored procedure that calls the xp_SMTPSendMail .dll file to send the email and then destroys the records in the temporary table.
I've never done this before. I set up the trigger which runs the extended stored procedure every two minutes and it seems to work. I registered the xp_SMTPSendMail .dll file, but I can't get it to send a message to the SMTP server yet.
Are the above two steps viable in terms of accomplishing my objective? And, what steps do I need to implement in the extended stored procedure to accomplish the calling of the .dll object, insertion of the variables from the fields in the temporary table, and finally the destruction of the data in the temp table?
Thanks,
Hierge
Virginia
I have an ASP script that updates a temporary table. Previously, I had a VB program that goes to the temporary table every two minutes, formats the information, sends it to the SMTP server and destroys the data in the temporary table.
I want to replace the VB program with the xp_SMTPSendMail extended stored procedure. I am considering the following:
1. Setting up a stored procedure that will run the extended stored procedure every two minutes.
2. Setting up the extended stored procedure that calls the xp_SMTPSendMail .dll file to send the email and then destroys the records in the temporary table.
I've never done this before. I set up the trigger which runs the extended stored procedure every two minutes and it seems to work. I registered the xp_SMTPSendMail .dll file, but I can't get it to send a message to the SMTP server yet.
Are the above two steps viable in terms of accomplishing my objective? And, what steps do I need to implement in the extended stored procedure to accomplish the calling of the .dll object, insertion of the variables from the fields in the temporary table, and finally the destruction of the data in the temp table?
Thanks,
Hierge
Virginia