简体   繁体   中英

How can I send email post on azure website?

I need to send email letters to notify users about registration and other. How can I do that without azure plugins. I can't use azure plugins because my subscription doesn't let me to install them.

What is an "Azure plugin"?
For my emails I use System.Net.Mail.SmtpClient + SendGrid.com

If you just need to send email, you can send emails via the System.Net Smtp classes.

If you have a gmail account, you can send mails via Gmail. See this question for an example of the code.

How to send email to gmail using SMTPclient in C#?

you can also put mail settings into your Web/Worker Roles config file.

GMail + C# + Web.Config: Send Mail Works Programmatically, Throws Exception Using Web.Config Values

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