SoftMailSendMail 方法 (String, String, String, Boolean) |
发送邮件的方法,默认发送别名,优先级,是否HTML
命名空间:
HslCommunication.BasicFramework
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public bool SendMail(
string addr_to,
string subject,
string body,
bool isHtml
)
Public Function SendMail (
addr_to As String,
subject As String,
body As String,
isHtml As Boolean
) As Boolean
public:
bool SendMail(
String^ addr_to,
String^ subject,
String^ body,
bool isHtml
)
member SendMail :
addr_to : string *
subject : string *
body : string *
isHtml : bool -> bool
参数
- addr_to
- 类型:SystemString
接收地址 - subject
- 类型:SystemString
邮件主题 - body
- 类型:SystemString
邮件内容 - isHtml
- 类型:SystemBoolean
是否是html格式的内容
返回值
类型:
Boolean是否发送成功,内容不正确会被视为垃圾邮件
参见