最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
一个通过web.Mail发送邮件的类
时间:2022-06-30 11:38:45 编辑:袖梨 来源:一聚教程网
using System;
using System.Web;
using System.Web.Mail;
using Dottext.Framework;
using Dottext.Framework.Configuration;
namespace YourNamespace.Email
{
///
/// Default implementation of the IMailProvider
///
public class SystemMail : IMailProvider
{
public SystemMail(){}
#region
private string _to;
public string To
{
get{return _to;}
set{_to = value;}
}
private string _from;
public string From
{
get{return _from;}
set{_from = value;}
}
private string _subject;
public string Subject
{
get{return _subject;}
set{_subject = value;}
}
private string _body;
public string Body
{
get{return _body;}
set{_body = value;}
}
#endregion
private string _adminEmail;
public string AdminEmail
{
get{return _adminEmail;}
set{_adminEmail = value;}
}
private string _smtpServer = "localhost";
public string SmtpServer
相关文章
- 地狱即我们无人机怎么升级 模块安装与技能解锁指南 09-18
- 无主之地4圣城终点区玉米卷饼在哪 圣城终点区玉米卷饼收集攻略 09-18
- 禁闭求生2蝴蝶头箍怎么做 蝴蝶头箍制作攻略 09-18
- 我的休闲时光1月优家风尚新衣服有哪些-1月优家风尚新增服饰一览 09-18
- DNF手游女圣职怎么一天50级-女圣职一天50级速成攻略 09-18
- 魔兽世界莫高雷怎么去雷霆崖-莫高雷前往雷霆崖方法 09-18