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

CDO.Message.1 error '80040220'

3
I write a script to send an email using CDO and it works fine with XP environment. When I try to run it on win 2003 server I got the above error Message.

CDO.Message.1 error '80040220'

The SendUsing configuration value is invalid.


Please help.
Jan 16 '08 #1
4 7091
jhardman
3,406 Expert 2GB
undoubtedly sending email from ASP is one of the most frustrating features. Post your code and I will be willing to look at it.

Jared
Jan 17 '08 #2
abudu
3
Dear Jhardman:

Thank you for your help. Here is the code. It works fine with XP. The problem is when I tried to run the code on Win 2003 server. Please Please Please.
Expand|Select|Wrap|Line Numbers
  1. <!--
  2.    METADATA
  3.    TYPE="typelib"
  4.    UUID="CD000000-8B95-11D1-82DB-00C04fb1625D"
  5.    NAME=CDO for Windows 2000 Library"
  6. -->
  7.  
  8. <%
  9.  
  10. SUB sendmail( fromWho, toWho, Subject, Body )
  11.  
  12.  
  13.   Set cdoConfig = CreateObject("CDO.Configuration")
  14.  
  15.   With cdoConfig.Fields
  16.      .Item(sch & "sendusing") = 2 ' cdoSendUsingport
  17.      .Item(sch & "smtpserver") = "Localhost" ' Server name
  18.      .update
  19.   End With
  20.  
  21.   Set cdoMessage = CreateObject("CDO.Message")
  22.  
  23.   With cdoMessage
  24.      Set .Configuration = cdoConfig 
  25.      .From = fromwho
  26.      .To = towho
  27.      .Subject =  subject 
  28.      .TextBody = Body
  29.      .Send
  30.   End With
  31.  
  32. END SUB
  33.  
  34. fromWho = "from@xxx.edu"
  35. toWho = "to@gmail.com"    
  36. Subject = "test test test the email subject" 
  37. Body = "test test emailbody"
  38.  
  39. sendMail fromWho, toWho, Subject, Body
  40.  
  41.      Response.write "Mail sent..." 
  42.  
  43. 'Cleanup
  44.  
  45. Set cdoMessage = Nothing
  46. Set cdoConfig = Nothing
  47.  
  48. %>
Jan 18 '08 #3
abudu
3
please help me with this problem can't solve it. Still trying. I really do appreciate your help. I have attached the code on the previous post!
Jan 23 '08 #4
jhardman
3,406 Expert 2GB
please help me with this problem can't solve it. Still trying. I really do appreciate your help. I have attached the code on the previous post!
I don't know why I didn't think of this before. CDOSYS is not installed by default. You will need to go to M$'s website and download it and install it. Someone probably already installed it on the XP machine you said this worked on. Try it and let me know if it gives you any troubles.

Jared
Jan 24 '08 #5

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

Similar topics

8
by: Steve | last post by:
I have several pairs of synchronized subforms in an application. I have a Delete button for each pair that uses the following code or similar to delete a record in the second subform: ...
3
by: Rolan | last post by:
I seem to be unable to have a custom error message to appear for Error 10011 (database was unable to append all the data to the table). Each time, the MS Access default error message box appears....
3
by: Robert | last post by:
Every time I navigate to any .aspx file on my computer, I get the error below. According to MSDN this indicates that my CLR is corrupt, but I've re-installed the .NET framework with no help. Also...
9
by: JTrigger | last post by:
When I compile my project using the IDE on a development machine it works just fine. When I compile it on the server using csc.exe, I get the following error when I try to bring it up in the web...
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...
5
by: Bruce Schechter | last post by:
I just started to develop an ASP.NET application in vs.net 2003 . But each time I try to execute the application (which is basically empty so far), I get a dialog box titled "Microsoft Development...
10
by: Rider | last post by:
Hi, simple(?) question about asp.net configuration.. I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm first start application the follow message shown. ========= Server...
8
by: g_man | last post by:
I am trying trap Runtime error 3022 (duplicates) in the click event of a command button that closes the form. I have code in the Form_Error event that does a good job of providing a more meaningful...
1
by: David Greenberg | last post by:
Hi In my DTS I am updating an Ingres database on a different server. I'm getting the following error immedtiately .... HResult of 0x80040e09 (-2147217911) returned Unexpected error occured. An...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.