Logo Anfibia Reactor ™ - User Guide
Copyright © 2013 Anfibia Software. All Rights Reserved.
www.anfibia-soft.com
Plugins : API : sendEmail

Summary

Sends an email by using Reactor's SMTP server settings.

Syntax

local result = sendEmail(email)

Parameters

email : A table with the email fields.

Returns

success : A boolean value indicating the result.

Description

Queues an email for sending via Reactor. The parameter table must at least contain the 'to' and 'from' fields. Other email fields supported are: 'cc', 'bcc', 'subject' and 'text' for the content of the email. See example below.

If the SMTP server settings are not configured in Reactor, this function will return false.

Examples

local email = {from = 'support@anfibia-soft.com'; to = 'sales@anfibia-soft.com'}
email.subject = 'Reactor status'
email.text = 'All systems are back to normal.'
local success = sendEmail(email)

 

See Also

sendSms
sendTweet