473,714 Members | 2,699 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDONTS error - too much data?

I have been using the CDONTS component on Windows 2000 to send emails for a
long time now (code below).

However, over time, the report that I am sending has got rather longer and
it now gives me an "unknown exception" error. However, I know that it's
because there's now too much data (If I remove some of the text it goes
fine).

I've "compacted" the message as much as I can, but I've got up to the limit
now of how much I can compact it by...

I've tried to write it to a file and attach that, but the same size limit
appears to hold for attachments too.

What to do....?

Thanks in advance

Griff

----------------
public sub sendThatEmail(b yVal sMessage, byVal asToAddressesAr ray)
Dim obOrderEmail
' Send the email
Set obOrderEmail = CreateObject("C DONTS.NewMail")
with obOrderEmail
.BodyFormat = 1
.MailFormat = 0
.From = sSystemAutomate dEmailSenderAdd ress
.Value("Reply-To") = sSystemAutomate dEmailReplyToAd dress

.To = join(asToAddres sesArray,";")

.Subject = "Billing Report"
.Body = sMessage
.Send
end with
Set obOrderEmail = Nothing
end sub
----------------------------


Sep 30 '05 #1
7 2032
Ditch CDONTS and switch to CDO.

http://aspfaq.com/show.asp?id=2026
http://aspfaq.com/show.asp?id=2119

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Griff" <Ho*****@The.Mo on> wrote in message
news:es******** ******@TK2MSFTN GP15.phx.gbl...
I have been using the CDONTS component on Windows 2000 to send emails for a long time now (code below).

However, over time, the report that I am sending has got rather longer and
it now gives me an "unknown exception" error. However, I know that it's
because there's now too much data (If I remove some of the text it goes
fine).

I've "compacted" the message as much as I can, but I've got up to the limit now of how much I can compact it by...

I've tried to write it to a file and attach that, but the same size limit
appears to hold for attachments too.

What to do....?

Thanks in advance

Griff

----------------
public sub sendThatEmail(b yVal sMessage, byVal asToAddressesAr ray)
Dim obOrderEmail
' Send the email
Set obOrderEmail = CreateObject("C DONTS.NewMail")
with obOrderEmail
.BodyFormat = 1
.MailFormat = 0
.From = sSystemAutomate dEmailSenderAdd ress
.Value("Reply-To") = sSystemAutomate dEmailReplyToAd dress

.To = join(asToAddres sesArray,";")

.Subject = "Billing Report"
.Body = sMessage
.Send
end with
Set obOrderEmail = Nothing
end sub
----------------------------


Sep 30 '05 #2
Looks like the way forward - thanks.

One quick question:
.Item(sch & "smtpserver ") = "<enter_mail.se rver_here>"


What would one expect for "<enter_mail.se rver_here>" ? Not sure what to add
(or in what format)

Thanks!

Griff

PS One minor thing - Microsoft seem to have changed their pages around, so
some of the links to their site don't work :-(
Sep 30 '05 #3
You'll need to contact Aaron (ASPFAQ owner) about the broken links... (see
the "Feedback" link on the same page).

With regard to "<enter_mail.se rver_here>", this would be in the form;

"smtp.yourmails erver.com"

For example, had you been using the Microsoft server, this would be;

..Item(sch & "smtpserver ") = "maila.!microso ft.com"

! added by me to prevent bot's

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Griff" <Ho*****@The.Mo on> wrote in message
news:OS******** *****@tk2msftng p13.phx.gbl...
Looks like the way forward - thanks.

One quick question:
.Item(sch & "smtpserver ") = "<enter_mail.se rver_here>"
What would one expect for "<enter_mail.se rver_here>" ? Not sure what to

add (or in what format)

Thanks!

Griff

PS One minor thing - Microsoft seem to have changed their pages around, so
some of the links to their site don't work :-(

Sep 30 '05 #4
As an aside, if you don't have your own dedicated mail server, use your
ISP's (if permitted) or, get yourself a copy of Argosoft;

www.argosoft.com

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Griff" <Ho*****@The.Mo on> wrote in message
news:OS******** *****@tk2msftng p13.phx.gbl...
Looks like the way forward - thanks.

One quick question:
.Item(sch & "smtpserver ") = "<enter_mail.se rver_here>"
What would one expect for "<enter_mail.se rver_here>" ? Not sure what to

add (or in what format)

Thanks!

Griff

PS One minor thing - Microsoft seem to have changed their pages around, so
some of the links to their site don't work :-(

Sep 30 '05 #5
Fantastic help - thanks Steven
Oct 3 '05 #6
The example given on:
http://www.w3schools.com/asp/asp_send_email.asp

Just shows the code required as:
<%
Set myMail=CreateOb ject("CDO.Messa ge")
myMail.Subject= "Sending email with CDO"
myMail.From="my ****@mydomain.c om"
myMail.To="so** ***@somedomain. com"
myMail.TextBody ="This is a message."
myMail.Send
set myMail=nothing
%>...without the need for setting up the configuration
details/fields.The CDONTS code (that this is replacing) did not have any
information for the SMTP server (it's all running locally) so would this be
able to pick up those details too?ThanksGriff
Oct 3 '05 #7
Yup - that seems to work fine for my needs.
Oct 3 '05 #8

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

Similar topics

3
4097
by: Guillaume Hanique | last post by:
Hello! Could anybody help me. I wrote a program that interprets information in a database, and can send information via email. The program works fine on my developer machine, but when I run it on an other computer, I get the error "Could not create 'CDONTS.NewMail' object..." a lot of times and then an error: "Failed to load resources from resource file. Please check your Setup.".
6
7870
by: Jon Montana | last post by:
CDONTS was working well until I installed Exchange 2000. I thought it might be a relay problem, but I allowed the server IP address to relay. Thanks for anything you can offer. here's the error: HTTP 500.100 - Internal Server Error - ASP error Internet Information Services
29
3539
by: | last post by:
I did a working code with CDONTS on NT4 Now I am testing is on w2k and it looks like objCDONTS.Send is completely ignored. I think is it ignored because it throws no errors, neither does the rest of the code setting objCDONTS=Server.CreateObject("CDONTS.NewMail") and then manipulating its properties. Do I need to somehow set IIS5 to make objCDONTS.Send work?
1
1332
by: | last post by:
Hi, I'm having a problem using CDONTS to send mail from my site. Recently we switched providers and since then the line Set objNewMail = CreateObject( "CDONTS.NewMail") is causing an internal server error. What could be causing this?
6
4409
by: kelsloris | last post by:
I have an asp app that uses CDONTS to send email notifications. On the .send method I get an error saying the specified path could not be found. Everything I find about this error refers to IMS and the IMC folder. They say to install IMS and set the pickup folder to the IMCDATA folder. The problem is that this was working just fine until yesterday. We reset the server yesterday and now all of a sudden the app cannot send email. Any idea...
16
3169
by: tshad | last post by:
I have both cdosys.dll and cdonts.dll on my W2K3 server. We have been told by our web authors that their asp code won't work on our machine and that we don't have CDONTS installed on our machine. They're getting an error from: Set objCDOMail = Server.CreateObject("CDONTS.NewMail") I know that the new format is:
5
2634
by: BaWork | last post by:
I have a web form where a client can select which site members to send an email to. This form is populated from the contents of the member table, so the form can have 0-x names listed on it depending on member expiration dates. When the form is submitted, the code loops through the form contents and sends an email to those members that meet the selected criteria. All this worked perfectly when I was sending text emails, but since I
12
6299
by: Jeff | last post by:
I have a dedicated windows server on BlueGenesis. I'd like to send an email using ASP, but I'm getting this error message: Microsoft VBScript runtime error '800a01ad' ActiveX component can't create object: 'CDONTS.NewMail' I'm told that is because CDONTS is not installed.
6
2934
by: jbguernsey | last post by:
for: There was no reference to CDO in the References so selected CDO. Code didn't work (CDONTS.email unrecognised). read There was no reference to CDONTS in the References so selected CDO. Code didn't work (CDONTS.email unrecognised).
0
8704
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9171
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9071
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7946
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4462
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4717
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3156
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2514
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2107
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.