c#异步发送邮件的类

这篇文章主要介绍了使用c#异步发送邮件的类,大家参考使用吧

首先要定义一个邮件信息的基类,如下所示:

复制代码 代码如下:

///
/// Base message class used for emails
///

public class Message
{
#region Constructor
///
/// Constructor
///

public Message()
{
}
#endregion

#region Properties
///


/// Whom the message is to
///

public virtual string To { get; set; }

///


/// The subject of the email
///

public virtual string Subject { get; set; }

///


/// Whom the message is from
///

public virtual string From { get; set; }

///


/// Body of the text
///

public virtual string Body { get; set; }

#endregion
}

以上就是c#异步发送邮件的类的详细内容,更多请关注0133技术站其它相关文章!

赞(0) 打赏
未经允许不得转载:0133技术站首页 » 其他教程