Require: IP-Symcon >= 4.0
boolean SMTP_SendMailMediaEx (int $InstanceID, string $Recipient, string $Subject, string $Text, int $MediaID)
InstanceID | ID of the SMTP instance |
Recipient | Recipient's e-mail address |
Subject | Subject of the email |
Text | E-mail text |
MediaID | Media object ID (image/sound and document only) |
If the command succeeds, it returns TRUE, otherwise FALSE.
Sends an email with the subject, media object and text to recipients via the instance with the ID InstanceID. In contrast to the SMTP_SendMailMedia function, the recipient can be specified explicitly in the function call.
SMTP_SendMailMediaEx(12345, "me@example.com", "Alarm!", "Someone rang the doorbell, but you're not here!", 23456);