473,657 Members | 2,497 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDO.Message.1 (0x80040220) The "SendUsing" configuration value is invalid.

CK
Hi All,
I have this problem when try to send a mail by Using
CDO.Message. I got the info from the web, said it may the problem where, the
IIS SMTP setup incorrectly.
My question is How i can know my SMTP was setup correctly? And
how to test it? I did see all the "mailroot" folder did appear in my
"inetpub" folder. And Inside the "mailroot" folder do have all the
subfolders ( which is badmail, drop and etc..).

Please help. Thanks.
<%
Dim MyMail
Set MyMail = Server.CreateOb ject("CDO.Messa ge")
MyMail.From = "ju****@myaddre ss.com"
MyMail.To = "ck***@desit.ne t"
MyMail.Cc = "fr*****@addres s3.com;fr*****@ address4.com"
MyMail.Bcc = "fr*****@addres s5.com;fr*****@ address6.com"
MyMail.Subject = "Sending Mail via CDOSYS for Windows 2000/XP"
MyMail.TextBody = "Sending email with CDOSYS Message " & "objects is easy!
Try it!"
MyMail.Fields.U pdate()
MyMail.Send()
Set MyMail = Nothing
%>

Regards.
C.K.
Jul 21 '05 #1
1 18558
You don't have quite enough code there to utilize CDO.Message (this looks
like CDONTS.NewMail with a swapped-out ProgID).

http://www.aspfaq.com/2026

--
http://www.aspfaq.com/
(Reverse address to reply.)


"CK" <ci****@yahoo.c om> wrote in message
news:#o******** ******@TK2MSFTN GP09.phx.gbl...
Hi All,
I have this problem when try to send a mail by Using
CDO.Message. I got the info from the web, said it may the problem where, the IIS SMTP setup incorrectly.
My question is How i can know my SMTP was setup correctly? And how to test it? I did see all the "mailroot" folder did appear in my
"inetpub" folder. And Inside the "mailroot" folder do have all the
subfolders ( which is badmail, drop and etc..).

Please help. Thanks.
<%
Dim MyMail
Set MyMail = Server.CreateOb ject("CDO.Messa ge")
MyMail.From = "ju****@myaddre ss.com"
MyMail.To = "ck***@desit.ne t"
MyMail.Cc = "fr*****@addres s3.com;fr*****@ address4.com"
MyMail.Bcc = "fr*****@addres s5.com;fr*****@ address6.com"
MyMail.Subject = "Sending Mail via CDOSYS for Windows 2000/XP"
MyMail.TextBody = "Sending email with CDOSYS Message " & "objects is easy!
Try it!"
MyMail.Fields.U pdate()
MyMail.Send()
Set MyMail = Nothing
%>

Regards.
C.K.

Jul 21 '05 #2

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

Similar topics

0
4602
by: Brian Morris | last post by:
I'm new to .NET and just trying a few things out, like emailing. I created a form in Visual Studio .Net to input some information for generating an email and I'm getting the following error when it executes both on my server or on the server of the .NET service provider. I'm obviously missing something very basic and I'm hoping one of you can point out my error. Thank you for your assistance. Brian
1
5325
by: July | last post by:
Hi, I created a testing application in C# on my local computer where Visual Studio.net 2002 is installed. And I created the saem application remote on my server. This application is a simple test on sending an email out. The local application works fine and successfully send out the email. But the remote one gave me the error message: ------------------------------------------------- The "SendUsing" configuration value is invalid....
3
10431
by: Steve | last post by:
Hi all, I'm trying to send e-mail using ASP: "CDO.Message" but its not working for me. I'm trying to use SMTP within IIS to send the mail (not our exchange server), the "Default SMTP Virtual Server" is started and running. The "Simple Mail Transfer Protocol (SMTP)" service within 'Services' is started and running. My machine is Win XP Pro.
2
4591
by: Brent | last post by:
Hi, I have a C# asp.net app that sent mail fine on server 2000 or win 2000, but now I moved it to our new 2003 box, and it's giving me "The 'SendUsing' configuration is invalid" This is the code now... MailMessage mail = new MailMessage(); mail.From = from;
1
2009
by: Elie | last post by:
Hello I get this error when the code runs from the server as an .asp page or from a compiled dll. But When I log onto the server and run a vb program that executes the same code, it works fine. this works fine on a different web server as well. They are both running windows 2003.
5
15121
by: lds | last post by:
I am getting the following error: The "SendUsing" configuration value is invalid. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid.
1
6711
by: samarthkumar84 | last post by:
Hi I had used following code for sending e-mail but facing this problem. I want to send this e-mail in ASP.NET using VB.NET code. I am attaching both code an output. CODE Imports System.Web.HttpCookie Imports System.Web.Mail Imports System.Web.Mail.SmtpMail
10
4908
by: dancer | last post by:
Using ASP.Net and Framework 1.1.4322 File works fine on my computer. On my host server, I get this message. The "SendUsing" configuration value is invalid. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: The "SendUsing"...
0
1621
by: mkpoornima | last post by:
<% Dim myMail Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="poornima.kandhasamy@gmail.com" myMail.To="k_poornima2003@yahoo.co.in" myMail.TextBody="This is a message." myMail.Send Set myMail=nothing %>
0
8392
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8823
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8726
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...
0
7320
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...
1
6163
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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
1944
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1604
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.