Crestron SIMPL+ Reference Manual page 84

Language reference guide
Hide thumbs Also See for SIMPL+:
Table of Contents

Advertisement

Software
®
74
SIMPL+
a@b.com format. Multiple recipients may be specified delimited with a ";".
Maximum field length: 65535.
Subject - Optional, but use an empty string to indicate that there is no subject.
Specifies the subject of the e-mail message. Maximum field length: 989.
Message - Optional, but use an empty string to indicate that there is no message.
Specifies the body of the e-mail message. An empty string indicates an empty
message. Maximum field length: 65535.
Return Value:
0 if successful. Otherwise, E-mail Return Error Code is returned. Negative return error
codes indicate that no part of the e-mail was sent (example: user logon password was
incorrect). Positive return error codes indicate a failure (example: one or more
recipient e-mail addresses was invalid), but the e-mail was still sent. In the event of
more than one failure, the return error code of the first failure is returned.
Example:
SIGNED_INTEGER nErr;
nErr = SendMail( "192.168.16.3",
"UserLogonName",
"UserLogonPassword",
"SenderEmailAddress@crestron.com",
"RecipientEmailAddress@crestron.com",
"ccEmailAddress@crestron.com",
"This is the subject",
"This is the message" );
if ( nErr < 0 )
Print( "Error sending e-mail\n" );
else
Print( "SendMail successful!\n );
Version:
SIMPL+ Version 3.01.xx (Pro 2 only)
Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

Advertisement

Table of Contents
loading

Table of Contents