|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Is there a maximum number of emails CDONTS can handle in an asp scripthave 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.
Show quote
Hide quote
"Hugo Lefebvre" <h.lefeb***@skynet.be> wrote in message I don't know about CDONTS. Its deprecated you should use CDOSYS. I'm notnews:471a055d$0$29260$ba620e4c@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. > 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 Thanks for the answer, but i'd like to know the answer for CDONTS. Can
anyone help? Thanks. Show quoteHide quote "Anthony Jones" <A**@yadayadayada.com> schreef in bericht news:O2cIguzEIHA.5360@TK2MSFTNGP03.phx.gbl... > "Hugo Lefebvre" <h.lefeb***@skynet.be> wrote in message > news:471a055d$0$29260$ba620e4c@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 > > "Hugo Lefebvre" wrote: Almost certainly.> ...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' Ditto.> and 'emailbcc' limited? Show quoteHide quote > do while x < 200 Yes. When x > 9007199254740992, VBScript will stop differentiating between x > 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? 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.
Permission denied creating Singleton in GLOBAL.ASA
How to open a file on the clients local hard drive from within ASP Generate email when I click button? HTTP 401.1 error when using IP address... Creating a variable name as the value of another variable. Link checker in ASP variable asp include How to play .vox file in asp page write a file to as subfolder of a InetServer location passwords in the source? |
|||||||||||||||||||||||