Require: IP-Symcon >= 2.2
boolean SMTP_SendMailAttachment (int $InstanceID, string $Subject, string $Text, string $FilePath)
InstanceID | ID of the SMTP instance |
Subject | Email subject |
Text | E-mail text |
FilePath | Path to the file |
If the command succeeds, it returns TRUE, otherwise FALSE.
Sends an email with the subject, attachment and text via the instance with the ID InstanceID.
The recipient specified in the properties page will be used. If different recipients are to be addressed, the SMTP_SendMailAttachmentEx function should be used.
SMTP_SendMailAttachment(12345, "Alarm!", "The heater is down!", "media/webcam.jpg");