C# Class LightFramework.Util.SmtpMailHelper

Datei anzeigen Open project: xianrendzw/LightFramework.Net

Public Methods

Method Description
Send ( string host, int port, string from, string fromPassword, string fromDisplayName, List toMailAddress, string subject, string body, string &desc ) : bool

发送邮件可带附件,System.Net.Mail命名空间

Send ( string host, int port, string from, string fromPassword, string fromDisplayName, string to, string toDisplayName, string subject, string body, string &desc ) : bool

发送邮件可带附件,System.Net.Mail命名空间

Private Methods

Method Description
SetAttachments ( string attachmentFileNames, MailMessage message ) : void
SetToMailAddress ( List toMailAddress, MailMessage message ) : void

Method Details

Send() public static method

发送邮件可带附件,System.Net.Mail命名空间
public static Send ( string host, int port, string from, string fromPassword, string fromDisplayName, List toMailAddress, string subject, string body, string &desc ) : bool
host string 邮件服务器地址
port int 邮件服务器端口
from string 发件人邮箱地址
fromPassword string 发件人邮箱密码
fromDisplayName string 发件人名字
toMailAddress List
subject string 邮件主题
body string 邮件内容
desc string
return bool

Send() public static method

发送邮件可带附件,System.Net.Mail命名空间
public static Send ( string host, int port, string from, string fromPassword, string fromDisplayName, string to, string toDisplayName, string subject, string body, string &desc ) : bool
host string 邮件服务器地址
port int 邮件服务器端口
from string 发件人邮箱地址
fromPassword string 发件人邮箱密码
fromDisplayName string 发件人名字
to string 收件人邮箱地址
toDisplayName string 收件人名字
subject string 邮件主题
body string 邮件内容
desc string
return bool