C# Class FS.Component.SmtpMail

E-Mail工具
Mostra file Open project: FarseerNet/Farseer.Net Class Usage Examples

Public Methods

Method Description
Send ( List lstAddress, string subject, string body, EmailInfo mail = null, string fileName = "" ) : bool

发送电子邮件

Send ( List lstAddress, string subject, string body, string fileName = "" ) : bool

发送电子邮件

Send ( string emailAddress, string subject, string body, string fileName = "" ) : bool

发送电子邮件

SmtpMail ( string loginName, string loginPwd, string sendMail, string sendUserName, string smtpServer, int recipientMaxNum, int smtpPort = 25 ) : System.Collections.Generic

Method Details

Send() public static method

发送电子邮件
public static Send ( List lstAddress, string subject, string body, EmailInfo mail = null, string fileName = "" ) : bool
lstAddress List 收件人地址
subject string 邮件的标题
body string 邮件的正文
mail EmailInfo Email配置
fileName string 邮件附件路径名
return bool

Send() public method

发送电子邮件
public Send ( List lstAddress, string subject, string body, string fileName = "" ) : bool
lstAddress List 收件人地址
subject string 邮件的标题
body string 邮件的正文
fileName string 邮件附件路径名
return bool

Send() public method

发送电子邮件
public Send ( string emailAddress, string subject, string body, string fileName = "" ) : bool
emailAddress string 收件人地址,多个用;分隔
subject string 邮件的标题
body string 邮件的正文
fileName string 邮件附件路径名
return bool

SmtpMail() public method

public SmtpMail ( string loginName, string loginPwd, string sendMail, string sendUserName, string smtpServer, int recipientMaxNum, int smtpPort = 25 ) : System.Collections.Generic
loginName string
loginPwd string
sendMail string
sendUserName string
smtpServer string
recipientMaxNum int
smtpPort int
return System.Collections.Generic