[Email_Immediate] sends an email immediately — bypassing the email queue system. This method can be used for messages that are of very high priority (but should be used sparingly) or can be used for messages that are larger than about 5MB and cannot be stored in the queue. The method is designed to take the values from an [Email_Compose] object with recipients, from, and data of the message to send. In addition, the method can take optional -Host, -Username, -Password, -Port, and -Timeout parameters. By default all of these parameters are fetched from the values stored in Site Administration.
var(msg) = email_compose(...) email_immediate(-data=$msg->data, -from=$msg->from, -recipients=$msg->recipients)
The [email_immediate] method is meant to take its data from an [email_compose] object, and this is a simple example of how that can work.
var(my_msg) = email_compose(-email@example.com', -firstname.lastname@example.org', -subject='Re: Subj', -body='Good Deal') email_immediate(-host='smtp.example.com', -data=$my_msg->data, -from=$my_msg->from, -recipients=$my_msg->recipients)
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.