如何使用邮戳为ASP.NET Login控件? [英] How can I use Postmark for ASP.NET Login controls?
问题描述
我不知道怎么用邮戳在web.config中发送电子邮件,而不是指定一个SMTP的各种登录控件:
I'm wondering how I can use Postmark for sending emails rather than specifying an SMTP in the web.config for the various login controls:
ASP:RecoverPassword
ASP:的ChangePassword
asp:RecoverPassword asp:ChangePassword
我不希望使用SMTP,邮戳做了伟大的工作,我们所有其他的电子邮件。
I don't want to use SMTP, Postmark is doing a great job with all of our other email.
有什么建议?
推荐答案
看起来可以实现接收控制的 OnSendingMail
事件 MailMessageEventArgs
包含它正要发送消息。你应该能够再自己发送邮件,并设置取消
在事件参数哪个 - 乍看之下 - 不会与密码重置流程的干扰休息
It looks like you can implement the control's OnSendingMail
event which receives a MailMessageEventArgs
containing the message it was about to send. You should be able to then send the mail yourself and set Cancel
in the event args which - at first glance - won't interfere with the rest of the password reset workflow.
这篇关于如何使用邮戳为ASP.NET Login控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!