首页 > 其他 > 详细

smtpclient 邮件发送测试

时间:2015-01-02 14:37:29      阅读:253      评论:0      收藏:0      [点我收藏+]

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Mail;
using System.Net;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
SmtpClient sc = new SmtpClient("smtp.qq.com");
sc.Credentials = new NetworkCredential("739423721@qq.com", "*******");
sc.Send("739423721@qq.com", "1431758338@qq.com", "hello", "ceshi");
}
}
}

smtpclient 邮件发送测试

原文:http://www.cnblogs.com/ChineseMoonGod/p/4198367.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!