Documentation
RAC_SendReport
Require: Symcon >= 6.0
bool RAC_SendReport (int $InstanceID, string $Subject, string $Text)
Parameters
| InstanceID | ID of the Instance |
| Subject | Subject of the e-mail |
| Text | Text of the e-mail |
Returns
If the report could be created and sent, the command returns TRUE as result, otherwise FALSE.
Description
Generates the consumption report of the instance with the ID InstanceID again and sends it as an attachment using the SMTP instance selected in the instance. The e-mail has the subject Subject and the text Text.
If the variable selected under "Different receiver" contains a valid e-mail address, the report is sent to this address. Otherwise it is sent to the receiver entered in the SMTP instance.
Example
RAC_SendReport(12345, "Consumption report", "The current consumption report is attached.");