How to use gmail SMTP in ASP.NET form

前端 未结 7 620
眼角桃花
眼角桃花 2020-12-04 02:00

I am a ASP novice and am troubleshooting a form for work. None of us here are ASP experts as we use PHP. But I am on the bottom of PHP experience as well, mostly working wit

7条回答
  •  天涯浪人
    2020-12-04 02:38

    Google now blocks sign-ins from an app (even over SSL) to send an email. You have two options:

    1. Enable less-secure apps for the account you are using; OR
    2. Generate an app-password from Google (recommended)

    For option 2, you will have to enable 2-factor authentication before you can generate an app pasword. Here are the steps I took to get this working on my ASP.NET web app

    How to configure an ASP.NET web app with Gmail SMTP

提交回复
热议问题