473,414 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Is there a maximum number of emails CDONTS can handle in an asp script

Is there a maximum number of emails CDONTS can handle in an asp script? I
have different questions about this.

Question1:

example1:
set objSendMail = createobject("CDONTS.NewMail")
......

objSendMail.To = emailto

objSendMail.CC = emailcc

objSendMail.BCC = emailbcc
objSendMail.Send
set objSendMail = nothing
is there a limit for the length of the strings 'email_to', 'emailcc' and
'emailbcc'?
is the number of e-mailadresses in the strings 'email_to', 'emailcc' and
'emailbcc' limited?
Question2:

I make a loop like this:

x = 0

do while x < 200
set objSendMail = createobject("CDONTS.NewMail")
......

objSendMail.To = emailaddress(x)
objSendMail.Send
set objSendMail = nothing

x = x + 1
loop

where 'emailaddress(x)' is a string of one e-mailaddress (first time:
emailaddres of person1, second time emailaddress of person2, ...)

Is there a limit for the loop: 50 or 100 or more?
The webserver is IIS and, I think, the smtp-server is Exchange Server.

Thanks for an answer.

Oct 20 '07 #1
3 3962
"Hugo Lefebvre" <h.********@skynet.bewrote in message
news:47***********************@news.skynet.be...
Is there a maximum number of emails CDONTS can handle in an asp script? I
have different questions about this.

Question1:

example1:
set objSendMail = createobject("CDONTS.NewMail")
......

objSendMail.To = emailto

objSendMail.CC = emailcc

objSendMail.BCC = emailbcc
objSendMail.Send
set objSendMail = nothing
is there a limit for the length of the strings 'email_to', 'emailcc'
and
'emailbcc'?
is the number of e-mailadresses in the strings 'email_to', 'emailcc'
and
'emailbcc' limited?
Question2:

I make a loop like this:

x = 0

do while x < 200
set objSendMail = createobject("CDONTS.NewMail")
......

objSendMail.To = emailaddress(x)
objSendMail.Send
set objSendMail = nothing

x = x + 1
loop

where 'emailaddress(x)' is a string of one e-mailaddress (first time:
emailaddres of person1, second time emailaddress of person2, ...)

Is there a limit for the loop: 50 or 100 or more?
The webserver is IIS and, I think, the smtp-server is Exchange Server.
I don't know about CDONTS. Its deprecated you should use CDOSYS. I'm not
aware of there being any limit to the size of To or CC fields. I've seen
some with 100s email addresses.

As for question 2 the only thing that would limit it is the SMTP server. If
it felt it was being abused it might take some action.

--
Anthony Jones - MVP ASP/ASP.NET
Oct 20 '07 #2
Thanks for the answer, but i'd like to know the answer for CDONTS. Can
anyone help?

Thanks.
"Anthony Jones" <An*@yadayadayada.comschreef in bericht
news:O2**************@TK2MSFTNGP03.phx.gbl...
"Hugo Lefebvre" <h.********@skynet.bewrote in message
news:47***********************@news.skynet.be...
>Is there a maximum number of emails CDONTS can handle in an asp script? I
have different questions about this.

Question1:

example1:
set objSendMail = createobject("CDONTS.NewMail")
......

objSendMail.To = emailto

objSendMail.CC = emailcc

objSendMail.BCC = emailbcc
objSendMail.Send
set objSendMail = nothing
is there a limit for the length of the strings 'email_to', 'emailcc'
and
>'emailbcc'?
is the number of e-mailadresses in the strings 'email_to', 'emailcc'
and
>'emailbcc' limited?
Question2:

I make a loop like this:

x = 0

do while x < 200
set objSendMail = createobject("CDONTS.NewMail")
......

objSendMail.To = emailaddress(x)
objSendMail.Send
set objSendMail = nothing

x = x + 1
loop

where 'emailaddress(x)' is a string of one e-mailaddress (first time:
emailaddres of person1, second time emailaddress of person2, ...)

Is there a limit for the loop: 50 or 100 or more?
The webserver is IIS and, I think, the smtp-server is Exchange Server.

I don't know about CDONTS. Its deprecated you should use CDOSYS. I'm not
aware of there being any limit to the size of To or CC fields. I've seen
some with 100s email addresses.

As for question 2 the only thing that would limit it is the SMTP server.
If
it felt it was being abused it might take some action.

--
Anthony Jones - MVP ASP/ASP.NET


Oct 22 '07 #3
"Hugo Lefebvre" wrote:
...is there a limit for the length of the strings 'email_to', 'emailcc'
and 'emailbcc'?
Almost certainly.
...is the number of e-mailadresses in the strings 'email_to', 'emailcc'
and 'emailbcc' limited?
Ditto.

do while x < 200
set objSendMail = createobject("CDONTS.NewMail")
......

objSendMail.To = emailaddress(x)
objSendMail.Send
set objSendMail = nothing

x = x + 1
loop

where 'emailaddress(x)' is a string of one e-mailaddress (first time:
emailaddres of person1, second time emailaddress of person2, ...)

Is there a limit for the loop: 50 or 100 or more?
Yes. When x 9007199254740992, VBScript will stop differentiating between x
and x+1. Before that happens, you are likely to run into
Server.ScriptTimeout (if this is an ASP script) or disk space in your
\mailroot\pickup\ directory. The size of your emailaddress() array seems to
be a limiting factor, as well.

Otherwise, no. You are creating and destroying the object in each pass
through the loop, so you never hit an inherent CDONTS.NewMail limit.
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.

Oct 22 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Todd M. Taylor | last post by:
Hello; For some reason, the email scripts on my web site can't send emails to Hotmail accounts. No error is generated, but no email is sent either. I've done some searching on this matter, and...
10
by: Stuart Mueller | last post by:
I have an exchange server, that I sometimes use to perform mail shots to clients on our database, these can be upwards of 1000 at a time. As we don't want different clients to see who we are...
6
by: vasanth kumar | last post by:
I am running the following script for sending e-mail thro web Set objCDOMail = Server.CreateObject("CDONTS.NewMail") objCDOMail.From = "vkumar@ugs.com" objCDOMail.To = "vkumar@ugs.com"...
4
by: CK | last post by:
Hi all, I know this question is stupid. But i need some advice for this. I am trying to develop a website, which will allow the user send to order form to the admin email. I am planning to use the...
4
by: Mac Davis | last post by:
Ive just learned that CDONTS is not available of Server 2003. So, I've been trying to make sense out of what I can read. I have succeeded in completely confusing myself. In one place Microsoft...
3
by: Eddie Price | last post by:
I have a web database that just keeps users info for clients uploading/downloading files. Whenever someone uploads a new file this script sends out an email to notify the company. Script only works...
1
by: mark | last post by:
I need to send order confirmation emails through my asp.net storefront. With my Asp 3.0 sites I use cdonts with no issues. I've researched the system.web.mail asp.net way and haven't got it to...
1
by: Eric | last post by:
I've got a vb.net application that attaches an outgoing file and emails it to a destination. I use my email address as the From. The application runs on my desktop machine. It is not web-based and...
7
by: Paul | last post by:
I have just started work on a system using CDONTS to mail out. Whilst this is fine on the server, my local development machine is using XP Pro with IIS5.1 installed. Is there a way I can get the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.