473,508 Members | 4,712 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDO Message Maximum Message Size

14 New Member
Does anyone know how to increase the maximum size of a CDO Message sent by as ASP page? The maximum I've seen is 10KB. Thanks.
Apr 30 '08 #1
8 6187
DrBunchman
979 Recognized Expert Contributor
Do you mean the size of the message body itself or the body plus any attachments?

Have you tried changing the settings on the smtp server itself?

Dr B
May 1 '08 #2
srkidd12
14 New Member
I mean the length of the message and the size of the file itself when it reachs your inbox. I am trying to dynamically create the message, but it continues to get cut off at 10KB in size.

I do not have control of the smtp server, but was told that the maximum size of an email going across our network is 6mb. I'm nowhere near that.

Any other suggestions?

Thank you again for assisting me.
May 1 '08 #3
jhardman
3,406 Recognized Expert Specialist
I mean the length of the message and the size of the file itself when it reachs your inbox. I am trying to dynamically create the message, but it continues to get cut off at 10KB in size.

I do not have control of the smtp server, but was told that the maximum size of an email going across our network is 6mb. I'm nowhere near that.

Any other suggestions?

Thank you again for assisting me.
Is there any way you can completely create and save the file before you open the cdosys object?

Jared
May 2 '08 #4
srkidd12
14 New Member
Is there any way you can completely create and save the file before you open the cdosys object?

Jared
Yes. I create the message and place it in a variable and then where you write
Expand|Select|Wrap|Line Numbers
  1. <%myMail.HTMLBody=message%>
Message is a variable that holds the entire message, but it still drops part of the message.

I did some playing with it Friday and discovered that you have only so much room horizontally and vertically to work with. I'm going to try and place the list of IDs in a table and see if that works. I will update you as soon as I find out.

Thanks again.
May 5 '08 #5
srkidd12
14 New Member
Yes. I create the message and place it in a variable and then where you write
Expand|Select|Wrap|Line Numbers
  1. <%myMail.HTMLBody=message%>
Message is a variable that holds the entire message, but it still drops part of the message.

I did some playing with it Friday and discovered that you have only so much room horizontally and vertically to work with. I'm going to try and place the list of IDs in a table and see if that works. I will update you as soon as I find out.

Thanks again.
Ok. The idea of creating a table for the IDs did not work, so I am back to square one. Anyone have any ideas on this?

I need to find a way for the CDO message to finish inserting the text of the message before it sends the message to the user. It's not a matter of size and not a matter of a limit on the number of characters, so that just leaves increasing the amount of time that the message has to insert the text before it sends the message.

Here is the relevant code:

Expand|Select|Wrap|Line Numbers
  1. while not rsPersons.eof
  2.     List = List + rsPersons("IDs")&"<br />"
  3.     rsPersons.movenext
  4.     wend
  5.  
  6. message = (This location has been transferred from someone to you as of "&now()&".<br /><br />There are IDs currently located there.  They are listed below.<br />"&list&" Have a good day.")
  7. Set myMail=CreateObject("CDO.Message")
  8.     myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") =  2
  9.     myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp server"
  10.     myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 
  11.     myMail.Configuration.Fields.Update
  12.     myMail.Subject="CDO Message"
  13.     myMail.From="my email"
  14.     myMail.To="Their email"
  15.     myMail.HTMLBody=message
  16.     myMail.Send
  17. Set myMail=nothing
  18.  
Thanks.
May 5 '08 #6
DrBunchman
979 Recognized Expert Contributor
Is it cutting off the message in a constant place eg after x number of characters? I think it's probably unlikely to be an issue with the time but this is easily tested by inserting some kind of wait code inbetween setting the body property and sending the message.

Dr B
May 5 '08 #7
srkidd12
14 New Member
Is it cutting off the message in a constant place eg after x number of characters? I think it's probably unlikely to be an issue with the time but this is easily tested by inserting some kind of wait code inbetween setting the body property and sending the message.

Dr B
No, the numerous tests that I have done have all returned various numbers of characters, so the length of the message seems not to be the issue. Could you post an example of that wait code? I've been searching for code like that, but have not found it. Thanks.
May 5 '08 #8
DrBunchman
979 Recognized Expert Contributor
An easy (and crappy) way is to stick a massive loop in. Test the example below and you'll see that there's a second or so delay between "Hello" and "World" writing to the screen.
Expand|Select|Wrap|Line Numbers
  1.  <%
  2. Response.Write("Hello")
  3. Response.Flush
  4. For i = 0 to 10000000
  5. Next
  6. Response.Write("World")
  7. %>
If you want to make sure that sufficient time has elapsed then you can stick an extra zero on the end to increase the pause.

Let me know whether the problem persists.

Dr B

PS Please note that it is not good practice to use a large loop to simulate a wait/sleep - I've suggested it because it's an easy way to test your script and I wouldn't recommend using it in a live environment.
May 6 '08 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
6657
by: chotiwallah | last post by:
there seems to be a maximum size (in px) for images created with imagecreatetruecolor (somewhere between 4000 px and 4500 px). if the image is bigger than that size, the browser doesn't display it...
11
25362
by: eggie2486 | last post by:
What is the maximum size of an array? I tried to edit an extremely large array for a magic square, for example, array, and when I ran the program, it would not display the array. I changed the...
19
26677
by: Jerry | last post by:
I am wondering what is the maximum size of memory that malloc() could handle. Is there any limitation on that? Where am I supposed to get this kind of information? Thank you everybody.
1
334
by: Hugh O | last post by:
Hi, I am familiar with the option within VB windows forms to load a form via a property setting or code that will display the form in the maximum window size. I am using Visual Studio,Net 2003...
3
17910
by: Madmartigan | last post by:
Hello I have the following task but am battling with the final output. How do I keep two different vectors in sync and how would I retrieve the index for the maximum value of one of the vectors??...
2
5229
by: skyy | last post by:
Hi.. i am doing some uploading of files using CGI with perl script.. the $CGI::POST_MAX is used to limit the maximum size of the upload file. Did anyone know what is the maximum size that i can...
2
3576
by: Woody Ling | last post by:
I am now using db2 v8.2 64bits without DPF. I want to create a very large table which is about 1000G and the record length is suitable for 32K page size. I find in the manual that the maximum size...
3
18177
by: skyy | last post by:
Hi.. what is the maximum size of an array and variable? With the following declaration: my $size; my @rx_array; what is the maximum number that $size can hold? what is the maximum number...
2
2627
choke
by: choke | last post by:
I need to write a function in devc++ that creates an array of n integers, each element is equal to n*n+i*i-n*i where i is from 0 to n-1 as the array index. Within the same function I need to find...
0
7228
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
7128
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
7393
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...
1
7058
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
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5635
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,...
0
3206
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...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
426
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...

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.