简体   繁体   中英

How can I use Postmark for ASP.NET Login controls?

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

I don't want to use SMTP, Postmark is doing a great job with all of our other email.

Any suggestions?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM