How to test asp.net email is being sent

后端 未结 7 1545
再見小時候
再見小時候 2021-02-09 16:11

I have some code in my asp.net which sends an email:

public void SendEmail(string message)
{
    var body = message;

    var email = new MailMessage(Configurati         


        
7条回答
  •  说谎
    说谎 (楼主)
    2021-02-09 16:41

    Send an email to yourself and see if you received it?

    If you don't know how to do that you probably want to go back to basics.

提交回复
热议问题