Lasso Soft Inc. > Home

[ Email_Result ]

Method

[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.

  • Syntax
email_send(...)
var(id) = email_result
email_status($id)
Examples
  • Beginner

Queue an email and then check it's status after a minute

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

Recent Comments

No Comments found

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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft