Lasso Soft Inc. > Home

[ email_batch ]

Method

The [email_batch] method allows for quickly queueing up a bunch of emails.

  • Syntax
email_batch => {
    email_send(...)
    email_send(...)
    email_send(...)
    email_send(...)
    email_send(...)
}
Examples
  • Beginner

Queueing up a message for addresses in a database

The example below loops through the email addresses it pulls from a database and queues up a message to each address.

Code

email_batch => {
    records(-inlineName='emails') => {
        email_send(-host='mail.example.com',
          -from='hostmaster@example.com',
          -to=field('email'),
          -subject='Possible Virus',
          -body='Your computer may have been hacked.'
        )
    }
}

Result

A message has been added to the email queue for each found email address

Recent Comments

">

Posted on: 19 August 2019

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