Lasso Soft Inc. > Home

[ Email_Immediate ]

Method

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

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

 

Immediately send up an [email_compose] object

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.

Code

var(my_msg) = email_compose(-to='to@example.org', -from='from@example.com',
    -subject='Re: Subj', -body='Good Deal')
email_immediate(-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 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft