How to use gmail SMTP in ASP.NET form

前端 未结 7 617
眼角桃花
眼角桃花 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:52

    There's no shortage of tutorials on how to send an email from within .NET.

    Essentially you want a System.Net.Mail.SmtpClient object to interact with the SMTP server, a System.Net.Mail.MailMessage object to hold the message data, and configuration data in your config file to direct the client on how/where to send the message.

提交回复
热议问题