Documentation
SMTP_SendMailMediaEx
Require: IP-Symcon >= 4.0
boolean SMTP_SendMailMediaEx (int $InstanceID, string $Recipient, string $Subject, string $Body, int $MediaID)
Parameters
InstanceID | ID of the SMTP instance |
Recipient | Recipient's e-mail address |
Subject | Subject of the email |
Body | Content of the email. Sent as HTML (since 7.0) if <html> and </html> is found, otherwise as text |
MediaID | Media object ID (image/sound and document only) |
Returns
If the command succeeds, it returns TRUE, otherwise FALSE.
Description
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.
Example
SMTP_SendMailMediaEx(12345, "me@example.com", "Alarm!", "Someone rang the doorbell, but you're not here!", 23456);