打开默认用户与给定地址的邮件客户端, 主题, 邮件的正文.
#include <INet.au3>
_INetMail ( $s_MailTo, $s_MailSubject, $s_MailBody )
$s_MailTo | 电子邮件送达地址 |
$s_MailSubject | 电子邮件主题 |
$s_MailBody | 电子邮件正文 |
成功: | 返回电子邮件客户端进程标识符 |
失败: | 返回 0,设置@error:非 0. |
#include <Inet.au3>
Local $Address = InputBox('Address', 'Enter the E-Mail address to send message to')
Local $Subject = InputBox('Subject', 'Enter a subject for the E-Mail')
Local $Body = InputBox('Body', 'Enter the body (message) of the E-Mail')
MsgBox(4096, 'E-Mail has been opened', 'The E-Mail has been opened and process identifier for the E-Mail client is ' & _INetMail($Address, $Subject, $Body))