Function Reference


_INetMail

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

#include <Inet.au3>
_INetMail ( $sMailTo, $sMailSubject, $sMailBody )

Parameters

$sMailTo Address for the E-Mail
$sMailSubject Subject for the E-Mail
$sMailBody Body for the E-Mail

Return Value

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

Related

_INetSmtpMail

Example

#include <Inet.au3>
#include <MsgBoxConstants.au3>

Local $sAddress = InputBox('Address', 'Enter the E-Mail address to send message to')
Local $sSubject = InputBox('Subject', 'Enter a subject for the E-Mail')
Local $sBody = InputBox('Body', 'Enter the body (message) of the E-Mail')
MsgBox($MB_SYSTEMMODAL, 'E-Mail has been opened', 'The E-Mail has been opened and process identifier for the E-Mail client is ' & _INetMail($sAddress, $sSubject, $sBody))