WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-09-2004, 06:58 AM
WebProWorld Pro
 

Join Date: Jun 2004
Location: Canada
Posts: 101
asimkhaliq RepRank 0
Default Bulk Mail Script in ASP

Hi guys

I am sending email newsletter to my clients about 6000 using ASP mail object. I am writng my own script. Now i have an issue which is script performance or speed. I tested that on 100 clients in a loop and it took abt 3 minutes. Is their any solution for this issue. Note my mail is dynamic caz iam using customer name and some info in my newsletter.

Thanks
Reply With Quote
  #2 (permalink)  
Old 11-10-2004, 05:17 PM
Jerry's Avatar
WebProWorld Pro
 

Join Date: Nov 2003
Location: Northern Texas
Posts: 259
Jerry RepRank 0
Default

Sending 6,000 emails usins asp mail inside a loop is going to take a long while.

The problem you'll run into is that the mail object has to wait for the smtp server to send each mail that you send out. All the while you're probably running up server resources in the process.

I'm assuming that you're using asp and vbscript, if so, make sure that you're using reDim on all strings that are assigned dynamically.

Where possible don't assign a value to a variable inside of a loop. (If you don't change it in the loop, define it outside)

This might help speed it up a bit
Reply With Quote
  #3 (permalink)  
Old 11-16-2004, 05:34 PM
WebProWorld New Member
 

Join Date: Jul 2003
Location: Arlington, VA
Posts: 8
modernsignal RepRank 0
Default

Hi,

This might be of help, too.

http://serverobjects.com/products.htm - ASPQMail.

I would not attempt to send all 6000 at once. I would run a scheduled script every 5 minutes or so and send 200 msgs at a time. This will ensure that you don't overwhelm the mail server (but it takes a bit more planning).

HTH,
Adam
__________________
Adam Polon
Modern Signal
Creators of Site Editor Content Management System
http://www.modernsignal.com/SiteEditor
adam@modernsignal.com
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , ,



Thread Tools
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

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


Search Engine Optimization by vBSEO 3.2.0