[Email_Result] returns a unique ID for the email that was just queued. This method should be called immediately after an [Email_Send] or [Email_Queue] method call. The value of this method can be passed to [Email_Status] to check the status of the email message.
email_send(...)
var(id) = email_result
email_status($id)
The code below will queue up an email message using [email_send], wait for a minute, and then display its status. Email status should be one of 'queued', 'sent', or 'error'.
Code
email_send(-host='mail.example.com',
-to='administrator@example.com',
-from='administrator@example.com',
-subject='For Your Eyes Only!',
-body='Top Secret Company Information.'
)
var(msg_id) = email_result
sleep(60000)
email_status($msg_id)
Result
sent
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments