473,398 Members | 2,404 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,398 software developers and data experts.

CDO.message failure (with no error message)

4
Hi. I have a pretty standard bit of script that generates a cdo email and sends it off to a predefined address list. The only bit of the script that is of note is that the attachment is an xmlss spreadsheet generated by a seperate asp page and added to the email by specifying the url of the asp page in the addattachment line of the cdo.message

This has been working fine for a fair few months now, but recently we changed web servers, and now it no longer works. When I attempt to run the page, internet explorer spends a couple of minutes attempting to load it (which is intself odd as I'd expect it to timeout after 30 seconds), then states that the maximum time for loading a page has expired, but gives no other error message. There are a couple of email addresses in the send-to list, one of them has been receiving the email (?!?) but the rest haven't (and the one that's been receiving it is not the 1st in the list). If I change the email address so it sends only to me, I receive nothing.

I guess theres something different on this new web server, but I don't know what. Any help would be much appreciated!

Expand|Select|Wrap|Line Numbers
  1. dim mymail
  2. dim body
  3. body = "some html bla..."
  4. Set myMail=CreateObject("CDO.Message")
  5. myMail.Subject="AM Service Report - "& useDate
  6. myMail.From="me@somehwere.co.uk"
  7. myMail.To= "somebody@somehwere.co.uk;someoneelse@somewhere.co.uk"
  8. myMail.HTMLBody=body
  9. myMail.AddAttachment "http://www.somewhere.co.uk/results.asp?useDate="& useDate
  10. myMail.Send
  11. set myMail=nothing
  12.  
Apr 2 '07 #1
2 3018
Check out the link given below there are somesettings to be needed to upload file .......... so chech the file is mentioned in the below link ............


http://www.banmanpro.com/support2/File_Upload_limits.asp

Hi. I have a pretty standard bit of script that generates a cdo email and sends it off to a predefined address list. The only bit of the script that is of note is that the attachment is an xmlss spreadsheet generated by a seperate asp page and added to the email by specifying the url of the asp page in the addattachment line of the cdo.message

This has been working fine for a fair few months now, but recently we changed web servers, and now it no longer works. When I attempt to run the page, internet explorer spends a couple of minutes attempting to load it (which is intself odd as I'd expect it to timeout after 30 seconds), then states that the maximum time for loading a page has expired, but gives no other error message. There are a couple of email addresses in the send-to list, one of them has been receiving the email (?!?) but the rest haven't (and the one that's been receiving it is not the 1st in the list). If I change the email address so it sends only to me, I receive nothing.

I guess theres something different on this new web server, but I don't know what. Any help would be much appreciated!

Expand|Select|Wrap|Line Numbers
  1. dim mymail
  2. dim body
  3. body = "some html bla..."
  4. Set myMail=CreateObject("CDO.Message")
  5. myMail.Subject="AM Service Report - "& useDate
  6. myMail.From="me@somehwere.co.uk"
  7. myMail.To= "somebody@somehwere.co.uk;someoneelse@somewhere.co.uk"
  8. myMail.HTMLBody=body
  9. myMail.AddAttachment "http://www.somewhere.co.uk/results.asp?useDate="& useDate
  10. myMail.Send
  11. set myMail=nothing
  12.  
Sep 5 '07 #2
markrawlingson
346 Expert 100+
I would agree that it has something to do with the email attachment.

You said that you've tried sending yourself an email but get nothing.. have you tried dropping the AddAttachment line and then sending it to yourself? I would start there. If it does send you an email without that line - i would try sending yourself a FILE attachment like "C:/myfolder/myfile.html" and see if you get it.

Secondly, you could try replacing the AddAttachment line with
oMailerObj.CreateMHTMLBody "http://www.someurl.com/somewhereontheweb.html"

It should produce a similar effect.

Sincerely,
Mark
Sep 5 '07 #3

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

Similar topics

4
by: J. Marshall Latham | last post by:
I have written an ASP.NET web app in C# that is trying to connect to a database using OleDb. I put code in a dll that uses another dll to create a connection object (and open it if requested) to...
8
by: Toni | last post by:
Hello I'm a newbie in VB .NET and I'd like to accomplish a (I think) very simple task. What I want to do is throw an error message to the user whenever something happens. The main point is...
4
by: shahzad | last post by:
i get thius error msg when i run my aspx page Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
7
by: deltalimagolf | last post by:
I now get the following error message after copying an asp.net application to the deployment web server. I don't have SQLExpress or any version of SQL 2005 installed. I found the "LocalSQLServer"...
3
by: Benny Raymond | last post by:
I get the following error message when trying to use the Excel Interop on my wife's machine however I don't get it on my own - we have the same version of Office installed - what could be the...
0
by: Marty Cruise | last post by:
I successfully deploy my application to 20 domain users. Only one new user is giving me a problem, although he can access all domain resources. When he clicks the installation link on the...
4
by: dancer | last post by:
I get this error if an item in a radiobutton list is not chosen when filling in a form.. I added a RequiredFieldValidator, but I still get the message. Object reference not set to an instance of...
3
by: dancer | last post by:
I am using Framework 1.1.4322. Who can tell me why I'm getting this error? My code follows Compilation Error Description: An error occurred during the compilation of a resource required to...
13
by: Kevin Liebowicz | last post by:
Yes, I wasted the past two days trying to fix this. Yes, this is on a Win2003 Server. Yes, this machine is a domain controller. Yes, I seen the dozens of KB articles like this one:...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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
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...

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.