Require: IP-Symcon >= 4.0
boolean SMTP_SendMailMediaEx (int $InstanceID, string $Recipient, string $Subject, string $Body, int $MediaID)
ID of the SMTP instance
Recipient's e-mail address
Subject of the email
Content of the email. Sent as HTML (since 7.0) if <html> and </html> is found, otherwise as text
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, "firstname.lastname@example.org", "Alarm!", "Someone rang the doorbell, but you're not here!", 23456);