一聚教程网:一个值得你收藏的教程网站

热门教程

改进了的一个邮件发送类

时间:2022-07-02 11:32:59 编辑:袖梨 来源:一聚教程网

/******************************************************
FileName:
Copyright (c) 2003-xxxx *********公司技术开发部
Writer:
create Date:2004-12-20
Rewriter:
Rewrite Date:
Impact:
Main Content:(Function Name、parameters、returns)
支持ESMTP, 多附件
******************************************************/
using System;
using System.Collections;
using System.Net.Sockets;
using System.IO;
using System.Text;
namespace Edu.Stu.Common.Mail
{
///
/// Module ID:0005
/// Depiction:发送邮件,支持ESMTP, 多附件
/// Wreter:Nick
/// Create Date;2004-12-20
///

public class MailSender
{
#region "Fields"
private string m_strFromName = "";
private string[] m_strTo = null;
private string m_strFrom = "";
private string m_strPassWord = "";
private string m_strUserName = "";
private int m_iPort = 25;
private string m_strServer = "";
private int m_iPriority = 3;
private string m_strEncoding = "8bit";
private string m_strLanguageEncoding = "GB2312";
private bool m_bIsHtml = true;
private string m_strHtmlBody = "";
private string m_strTxtBody = "";
private string m_strSubject = "";
private string m_strToName = "";
private ArrayList m_alAttachments = new ArrayList ();
#endregion
#region "Propertes"

热门栏目