using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Net.Mail;
using System.Net;
namespace Pub.Class
{
/// <summary>
/// 發送Email類
/// </summary>
public class Email
{
#region 私有成員
private static object lockHelper = new object();
private string _From;
private string _FromEmail;
private string _Subject;
private string _Body;
private string _SmtpServer;
private string _SmtpPort = "25";
private string _SmtpUserName;
private string _SmtpPassword;
private System.Web.Mail.MailFormat _Format = System.Web.Mail.MailFormat.Html;
private System.Text.Encoding _Encoding = System.Text.Encoding.Default;
#endregion
#region 屬性
/// <summary>
/// 正文內容類型
/// </summary>
public System.Web.Mail.MailFormat Format { set { _Format = value; } }
/// <summary>
/// 正文內容編碼
/// </summary>
public System.Text.Encoding Encoding { set<