Lasso Soft Inc. > Home

[ Email_Queue ]

Method

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

  • Syntax
var(msg) = email_compose(...)
email_queue(-data=$msg->data, -from=$msg->from, -recipients=$msg->recipients)
Examples
  • Beginner

Queue up an [email_compose] object

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.

Code

var(my_msg) = email_compose(-to='to@example.org', -from='from@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)

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