如何从asp.net网站发送电子邮件: -
问题描述:
请与我分享从ASP.net C#网站发送电子邮件申请的代码。
谢谢
Hi,
Kindly share me the code for sending email application from ASP.net C# website.
Thanks
答
请看这里:使用或不使用附件在C#中发送电子邮件:通用例程。 [ ^ ]
嗨........
已经解决了这个......以上链接非常有用....只是button_click事件..以下需要添加: -
smtp.Credentials = new System.Net.NetworkCredential(abc @ gmail .com,密码);
smtp.EnableSsl = true;
谢谢.....
Hi........
Have solved this.....the above link is very helpful....just of button_click event..following needs to be added:--
smtp.Credentials = new System.Net.NetworkCredential("abc@gmail.com", "password");
smtp.EnableSsl = true;
Thanks.....