[Email_Queue] queues an email for sending. This is a utility method that is used by [Email_Compose]. It is not usually necessary to call this method directly.
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_queue(-data=$msg->data, -from=$msg->from, -recipients=$msg->recipients)
The [email_queue] 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(-firstname.lastname@example.org', -email@example.com', -subject='Re: Subj', -body='Good Deal') email_queue(-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.