Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 2nd, 2006, 11:39 AM
Authorized User
 
Join Date: Jul 2003
Location: Franklin, Indiana, USA.
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
Reply With Quote
  #2 (permalink)  
Old November 2nd, 2006, 11:42 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

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
Reply With Quote
  #3 (permalink)  
Old November 2nd, 2006, 11:45 AM
Authorized User
 
Join Date: Jul 2003
Location: Franklin, Indiana, USA.
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?

Reply With Quote
  #4 (permalink)  
Old November 2nd, 2006, 11:50 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

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
Reply With Quote
  #5 (permalink)  
Old November 2nd, 2006, 12:21 PM
Authorized User
 
Join Date: Jul 2003
Location: Franklin, Indiana, USA.
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #6 (permalink)  
Old November 2nd, 2006, 12:35 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

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
Reply With Quote
  #7 (permalink)  
Old November 2nd, 2006, 05:34 PM
Authorized User
 
Join Date: Jul 2003
Location: Franklin, Indiana, USA.
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #8 (permalink)  
Old November 3rd, 2006, 09:22 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the senders email address in the mail() rinventive Beginning PHP 1 May 23rd, 2006 10:24 PM
Changing the "From" header when sending email rinventive BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 May 23rd, 2006 03:56 PM
Changing sheet code name bdancis Excel VBA 1 June 2nd, 2005 03:49 AM
Changing code while debugging. ltdanp21 VS.NET 2002/2003 5 June 16th, 2004 06:11 PM
Changing Crystal Report Title from VB Code Niaz Pro VB Databases 4 June 9th, 2004 09:51 PM



All times are GMT -4. The time now is 08:09 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.