NetBlog主题

C#实现邮件发送功能
C#基础

C#实现邮件发送功能

4851 0

private void button1_Click(object sender, EventArgs e){//创建一个邮件对像MailMessage mailObject = new MailMessage();//设置发件人mailObject.From = new MailAddress("lqwvje@163.com");//设置收件人mailObject.To.Add(new MailAddress("78630559@qq.co…