SMTP Email Sending

前端 未结 2 792
迷失自我
迷失自我 2021-02-14 00:19

No connection could be made because the target machine actively refused it 127.0.0.1:25 Description: An unhandled exception occurred during the execution of the current web requ

相关标签:
2条回答
  • 2021-02-14 00:52

    I got the error with smtp services installed but not started. To start services on the local machine with smtp already installed, here's the steps I took:

    1. Open Server Manager
    2. Select Local Server
    3. Type "smtp" in the filter box under SERVICES (see image)
    4. Right click on Simple Mail Transfer Protocol Service (SMTP) and select Start Services

    0 讨论(0)
  • 2021-02-14 00:59

    You forgot to start your SMTP server on that machine

    Please don't tell you don't have a SMTP server on that machine. But, if you have to tell that, refer to this page and this page also

    Even if you configure the local SMTP server, your emails are most likely to end up in spam folder. Better use the SMTP server of your email provider. If you are using Gmail, have a look at here

    0 讨论(0)
提交回复
热议问题