Function Reference


_INetMail

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

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

Parameters

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

Return Value

Success: Process identifier for the E-Mail client
Failure: Returns 0 and sets @error to non-zero.

Remarks

None.

Related

_INetSmtpMail

Example


#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(0, 'E-Mail has been opened', 'The E-Mail has been opened and process identifier for the E-Mail client is ' & _INetMail($Address, $Subject, $Body))