« Back to Product

Documentation

SMTP_SendMailMedia

Require: IP-Symcon >= 4.0

 boolean SMTP_SendMailMedia (int $InstanceID, string $Subject, string $Body, int $MediaID) 

Parameters

InstanceID

ID of the SMTP instance

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 via the instance with the ID InstanceID.

Warning

The recipient specified in the properties page will be used. If different recipients are to be addressed, the SMTP_SendMailMediaEx function is to be used.

Example

SMTP_SendMailMedia(12345, "Alarm!", "Someone rang the doorbell, but you're not here!", 23456);
Any questions?