Using System;
Using System. Collections. Generic;
Using System. Text;
Using System. Web;
Using System. Net. Mail;
Using System. Net;
Namespace Pub. Class
{
/// <Summary>
/// Email sending
/// </Summary>
Public class Email
{
# Region private member
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 attributes
/// <Summary>
/// Body content type
/// </Summary>
Public System. Web. Mail. MailFormat Format {set {_ Format = value ;}}
/// <Summary>
/// Body Content Encoding
/// </Summary>
Public System. Text. Encoding {set <