首页 > Linux操作系统 > Linux操作系统 > asp.net发送邮件程序
System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient();
//这里使用QQ的邮箱来发送测试,如果是其它邮箱,请根据其它邮箱POP3/IMAP/SMTP服务来设置
client.Host = "smtp.qq.com"; client.UseDefaultCredentials = false;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25284529/viewspace-684521/ ,如需转载,请注明出处,否则将追究法律责任。