Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 894
Product
SMTPmail
Version
version 2.0 and higher.
not applicable to SMTPmail free
Title
Can SMTPmail be used asynchronously?
Solution

There is no way to use the SMTP mailer object's SendMail method asynchronously, but if your goal is to return control of the page to the user as quickly as possible, then minimize the amount of time that SMTPmail requires for communicating with your SMTPmail server. This can be done by using either mailer object's UseMsPickUpDir method or theMassMail method.

  • Use UseMSPickUpDir instead of setting the RemoteHost property. This allows SMTPmail to place all of the emails in a pick up directory for your mail server instead of waiting for a connection and communication with the mail server directly - which can be time consuming. This functionality is often referred to as "Queued Mailing". For more information on how to set this up, please see KB article #516: How to use the Queued Mailing Functionality

  • Use the MassMail method instead of the SendMail method. MassMail allows all of the emails to be sent in one session before a response from the mail server is returned. When using SendMail, a response must be obtained for each email sent.


Related Links:

Created : 9/28/2004 11:18:10 AM (last modified : 9/28/2004 11:18:10 AM)
Rate this article!
 
Comments