MailSmtpHelperSendByConfig Method (String, String, String, String, String, Boolean, Encoding, Boolean, String) | Helper帮助文档 |
使用配置文件的配置信息发送邮件
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void SendByConfig( string server, string sender, string recipient, string subject, string body, bool isBodyHtml, Encoding encoding, bool isAuthentication, params string[] files )
Public Shared Sub SendByConfig ( server As String, sender As String, recipient As String, subject As String, body As String, isBodyHtml As Boolean, encoding As Encoding, isAuthentication As Boolean, ParamArray files As String() )
public: static void SendByConfig( String^ server, String^ sender, String^ recipient, String^ subject, String^ body, bool isBodyHtml, Encoding^ encoding, bool isAuthentication, ... array<String^>^ files )
static member SendByConfig : server : string * sender : string * recipient : string * subject : string * body : string * isBodyHtml : bool * encoding : Encoding * isAuthentication : bool * files : string[] -> unit
Parameters
- server
- Type: SystemString
包含用于 SMTP 事务的主机的名称或 IP 地址 - sender
- Type: SystemString
发件人 - recipient
- Type: SystemString
收件人 - subject
- Type: SystemString
主题 - body
- Type: SystemString
内容 - isBodyHtml
- Type: SystemBoolean
内容是否是Html格式 - encoding
- Type: System.TextEncoding
编码 - isAuthentication
- Type: SystemBoolean
是否认证 - files
- Type: SystemString
附件列表
See Also