↑  ←  Описание функции


_INetMail

Opens default user's mail client with given address, subject, and body.

#include <INet.au3>
_INetMail($s_MailTo, $s_MailSubject, $s_MailBody)

Параметры

$s_MailTo Address for the E-Mail
$s_MailSubject Subject for the E-Mail
$s_MailBody Body for the E-Mail

Возвращаемое значение

Успех:Process identifier for the E-Mail client
Ошибка:Возвращает 0 и устанавливает @error не равным 0.

См. также

_INetSmtpMail

Пример

#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))