« Back to Product

Documentation

SMTP_SendMail

Require: IP-Symcon >= 2.2

 boolean SMTP_SendMail (int $InstanceID, string $Subject, string $Body) 

Parameters

InstanceID

ID of the device to be switched

Subject

Subject of mail

Body

Content of the email. Sent as HTML (since 7.0) if <html> and </html> is found, otherwise as text

Returns

If the command succeeds, it returns TRUE, otherwise FALSE.

Description

Sends from the instance with ID InstanceID an e-mail with the subject and text.

Warning

It is used the sender that was specified in the properties page.

Example

SMTP_SendMail(12345, "Alarm!", "The heating system has broken.!");
Any questions?