SoftMailSendMail 方法 (String, String, String, String, String, MailPriority, Boolean) |
发送邮件的方法,需要提供完整的参数信息
命名空间:
HslCommunication.BasicFramework
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public bool SendMail(
string addr_from,
string name,
string[] addr_to,
string subject,
string body,
MailPriority priority,
bool isHtml
)
Public Function SendMail (
addr_from As String,
name As String,
addr_to As String(),
subject As String,
body As String,
priority As MailPriority,
isHtml As Boolean
) As Boolean
public:
bool SendMail(
String^ addr_from,
String^ name,
array<String^>^ addr_to,
String^ subject,
String^ body,
MailPriority priority,
bool isHtml
)
member SendMail :
addr_from : string *
name : string *
addr_to : string[] *
subject : string *
body : string *
priority : MailPriority *
isHtml : bool -> bool
参数
- addr_from
- 类型:SystemString
发送地址 - name
- 类型:SystemString
发送别名 - addr_to
- 类型:SystemString
接收地址 - subject
- 类型:SystemString
邮件主题 - body
- 类型:SystemString
邮件内容 - priority
- 类型:System.Net.MailMailPriority
优先级 - isHtml
- 类型:SystemBoolean
邮件内容是否是HTML语言
返回值
类型:
Boolean发生是否成功,内容不正确会被视为垃圾邮件
参见