 |
| Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

November 2nd, 2006, 11:39 AM
|
|
Authorized User
|
|
Join Date: Jul 2003
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Changing Email Code
I have been using the following javascript code successfully for years:
var Mailer = Server.CreateObject("SMTPsvg.Mailer");
Mailer.FromName = EmailAuthor;
Mailer.FromAddress = EmailAuthorAddress;
Mailer.RemoteHost = "localhost";
Mailer.Subject = EmailTopic;
Mailer.BodyText = (EmailBody);
Mailer.QMessage = true;
Mailer.ClearAllRecipients();
EmailRecipientAddress = RS("Email").Value;
Mailer.AddRecipient (EmailRecipient, EmailRecipientAddress);
if (Mailer.SendMail())
{
//Mail success code
}
else
{
//Mail failure code
}
The ISP I used to use loaded up Server Objects' ASPQMail that utilized the
Mailer.QMessage = true;
line to queue the emails so the page did not take 10 minutes to complete (sending broadcast emails to database query results, about 500 emails). My new ISP does not have ASPQMail and is telling me to use microsoft smtp but providing no other help (ServerObjects.com appears to have been abandoned). I have to be the world's worst google searcher as I can not find the information I need to convert this to something that will work on my new ISP's server.
This code is working on the new server, but the messages are not being queued, so it is taking 10 minutes for the page to complete. How do I queue messages using Microsoft SMTP?
Thanks in advance!
Rich
__________________
Ego is a faithful friend; He stays with us all the way to the crater.
|
|

November 2nd, 2006, 11:42 AM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
Are you using CDONTS to send the email? (Although it has since been abandoned with the advent of .NET) If so:
http://www.google.com/search?hl=en&q...Queue+Messages
-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
^^Thats my signature
|
|

November 2nd, 2006, 11:45 AM
|
|
Authorized User
|
|
Join Date: Jul 2003
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I searched CDONTS and found that it had been replaced by CDOSYS. Then didn't find anything on how to use CDOSYS. Would I be wasting my time converting to CDONTS if it has been replaced?
|
|

November 2nd, 2006, 11:50 AM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
CDOSYS and CDONTS are, essentially, the same thing. The former being the last incantation of CDONTS if I remember correctly. The only real differences between the 2 were slight coding modifications in how you set up a message and sent it; if you are using CDOSYS continue doing so and google:
http://www.google.com/search?hl=en&q...queue+messages
-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
^^Thats my signature
|
|

November 2nd, 2006, 12:21 PM
|
|
Authorized User
|
|
Join Date: Jul 2003
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Have started to root through the search results. Not finding queueing off hand. Do you know if it is available within CDOSYS?
Ego is a faithful friend; He stays with us all the way to the crater.
|
|

November 2nd, 2006, 12:35 PM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
I do not believe so. Also you may want to read through this archive post and it affirms that CDOSYS does not implement this functionality:
http://p2p.wrox.com/archive/asp_cdo/2002-05/11.asp
-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
^^Thats my signature
|
|

November 2nd, 2006, 05:34 PM
|
|
Authorized User
|
|
Join Date: Jul 2003
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Confirmed by post that CDOSYS does not provide queueing, so I am back to the original question. Previously had ServerObjects.com ASPQMail loaded that allowed the posted code to queue email messages. ServerObjects.com website appears to be abandoned. Haven't responded to emails. Any ideas on what to run to allow queueing messages without having to rewrite dozens of pages on multiple websites? Without queueing, I have pages that are taking 5 1/2 minutes to complete....not acceptable to the users!!
Thanks,
Rich
Ego is a faithful friend; He stays with us all the way to the crater.
|
|

November 3rd, 2006, 09:22 AM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
I do not have a solution for you that I know works and I don't think that you will find a *FREE* component to achieve what you want to do. First a SQL answer:
http://www.sqlteam.com/item.asp?ItemID=5908
and a COM component
http://www.emailarchitect.net/webapp/smtpcom/
-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
^^Thats my signature
|
|
 |