带有断点的异步电子邮件发送 [英] Async email send with break point

查看:133
本文介绍了带有断点的异步电子邮件发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我有一个关于发送异步电子邮件(在另一个线程上)以便与其他代码并行发送电子邮件的问题.
我有一个表单,我想发送异步电子邮件,但是在代码末尾,我有

Hey all,
I have a question about sending an async email (on another thread) in order to send the email in parallel to the other code.
I have a form and I want to send an async email, but in the end of the code I have

Respone.Redirect 


所以这是一个转折点.
我的问题是-如果电子邮件尚未发送并且主线程实现了Redirect方法,则电子邮件将不会发送?


So its a break point.
My question is - in case that the email has not been sent yet and the main thread achieve the Redirect method, the email won''t send?

推荐答案

对于异步在ASP.NET中调用,则可以使用AJAX.

在这里,看看:
http://api.jquery.com/jQuery.ajax/ [ http://api.jquery.com/category/ajax/ [ http://www.w3schools.com/jquery/jquery_ref_ajax.asp [
For Async call in ASP.NET, you can use AJAX for it.

Here, have a look:
http://api.jquery.com/jQuery.ajax/[^]
http://api.jquery.com/category/ajax/[^]
http://www.w3schools.com/jquery/jquery_ref_ajax.asp[^]


好,我尝试了一下,然后找到了邮件将在Redirect方法之后发送.
谢谢大家:)
OK, I tried it and I find out that the email will send after the Redirect method.
Thanks all :)


这篇关于带有断点的异步电子邮件发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆