NetHelperSendEmail Method | Helper帮助文档 |
发送电子邮件,所有SMTP配置信息均在config配置文件中system.net节设置.
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static bool SendEmail( string receiveEmail, string msgSubject, string msgBody, bool IsEnableSSL )
Public Shared Function SendEmail ( receiveEmail As String, msgSubject As String, msgBody As String, IsEnableSSL As Boolean ) As Boolean
public: static bool SendEmail( String^ receiveEmail, String^ msgSubject, String^ msgBody, bool IsEnableSSL )
static member SendEmail : receiveEmail : string * msgSubject : string * msgBody : string * IsEnableSSL : bool -> bool
Parameters
- receiveEmail
- Type: SystemString
接收电子邮件的地址 - msgSubject
- Type: SystemString
电子邮件的标题 - msgBody
- Type: SystemString
电子邮件的正文 - IsEnableSSL
- Type: SystemBoolean
是否开启SSL
Return Value
Type: Boolean[Missing <returns> documentation for "M:HD.Common.NetHelper.SendEmail(System.String,System.String,System.String,System.Boolean)"]
See Also