开发者

Sending an email after 7 minutes of recording record to SQL DB

开发者 https://www.devze.com 2023-03-17 19:45 出处:网络
I\'m using asp.net with vb.net.. I need to send an email to my website visitor after they signup to db ..

I'm using asp.net with vb.net.. I need to send an email to my website visitor after they signup to db .. or by anothe开发者_运维百科r way I need to do any action after inserting record to SQL db. Example

Dim Visitor as new Visitor
Visitor.Name = "#######"
Visitor.Email = "###@####.com
Visitor.Save()

I need to wait here for example 7 minutes then

SendEmail()

Is there any way to wait this minutes before I send the email.

Thanks,


How about if your visitor leaves the site? The program execution would stop and therefore there would be no way to count the time.

Maybe you could create a schedule task running an external app that monitors new signups every minute, for example; if a given sign-up is older than 7 minutes, then send email.


You could create a scheduled job that runs every few minutes and sends out emails perhaps.

0

精彩评论

暂无评论...
验证码 换一张
取 消