473,770 Members | 4,718 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending email with CDO

Hi - getting very frustrated. I would really appreciate some help here!

trying to send email via a form from my website. Have to use .asp and I have
been round and round the houses trying to get this to work.

On my xp pro system using IIS this works - an email appears in the folder

When it is hosted I get this error message. I understood that I didn't need
to set up any details about the host of the website. Lots of seaches suggest
putting in the smtp address but I am not sure what to do. I have also seen a
lot of talk about CDO.configurati on but again despite searching I can't find
out what to do.

Can somebody please help me!!!!!!!!

Many thanks in advance

Ed

CDO.Message.1 error '80040220'

The "SendUsing" configuration value is invalid.

/version1/contact/email3.asp, line 51

Here's a cut down version of my page

the link is

http://www.freezywater-st-georges.en...act/email3.asp


<%
'here's my asp then!
'using the post method hence the request.form methods
if Request.Form("i sSubmitted") = "yes" then

Dim sMsg
'more dims....

sTo = "ed****@seldon. topdsl.co.uk"
sFrom = "fr**@wood.bear .com"
sSubject = "The rights and wrongs of this and that"

sParentName = Request.Form("M oniker") & " " & Request.Form("p arentname")
sPhone = Request.Form("p hone")
sEmail = Request.Form("e mail_address")

'etc
'etc - build up the content

Dim objMail
Set objMail = Server.CreateOb ject("CDO.Messa ge")

objMail.From = sFrom
objMail.To = sTo
objMail.Subject = sSubject
objMail.TextBod y = sTextBody

objMail.Send

Set objMail= Nothing

end if

%>
Jun 8 '06 #1
6 12480

"Maxelcat" <Ma******@discu ssions.microsof t.com> wrote in message
news:17******** *************** ***********@mic rosoft.com...
Hi - getting very frustrated. I would really appreciate some help here!

trying to send email via a form from my website. Have to use .asp and I
have
been round and round the houses trying to get this to work.

On my xp pro system using IIS this works - an email appears in the folder

When it is hosted I get this error message. I understood that I didn't
need
So are you the host or somebody else? If somebody else, are you sure they
support anonymous posting?
to set up any details about the host of the website. Lots of seaches
suggest
putting in the smtp address but I am not sure what to do. I have also seen
a
lot of talk about CDO.configurati on but again despite searching I can't
find
out what to do.

Can somebody please help me!!!!!!!!

Many thanks in advance

Ed

CDO.Message.1 error '80040220'

The "SendUsing" configuration value is invalid.

/version1/contact/email3.asp, line 51

Here's a cut down version of my page

the link is

http://www.freezywater-st-georges.en...act/email3.asp


<%
'here's my asp then!
'using the post method hence the request.form methods
if Request.Form("i sSubmitted") = "yes" then

Dim sMsg
'more dims....

sTo = "ed****@seldon. topdsl.co.uk"
sFrom = "fr**@wood.bear .com"
sSubject = "The rights and wrongs of this and that"

sParentName = Request.Form("M oniker") & " " & Request.Form("p arentname")
sPhone = Request.Form("p hone")
sEmail = Request.Form("e mail_address")

'etc
'etc - build up the content

Dim objMail
Set objMail = Server.CreateOb ject("CDO.Messa ge")

objMail.From = sFrom
objMail.To = sTo
objMail.Subject = sSubject
objMail.TextBod y = sTextBody

objMail.Send

Set objMail= Nothing

end if

%>


Jun 8 '06 #2

"Maxelcat" <Ma******@discu ssions.microsof t.com> wrote in message
news:17******** *************** ***********@mic rosoft.com...
Hi - getting very frustrated. I would really appreciate some help here!

trying to send email via a form from my website. Have to use .asp and I
have
been round and round the houses trying to get this to work.

On my xp pro system using IIS this works - an email appears in the folder

When it is hosted I get this error message. I understood that I didn't
need
to set up any details about the host of the website. Lots of seaches
suggest
putting in the smtp address but I am not sure what to do. I have also seen
a
lot of talk about CDO.configurati on but again despite searching I can't
find
out what to do.

Can somebody please help me!!!!!!!!

Many thanks in advance

B.t.w. Ray Costanzo already pointed you to the solution. If you would have
taken 1 minute, to read his links you would have seen (for instance) this...

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

<!--
METADATA
TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library"
-->
<%
Set cdoConfig = CreateObject("C DO.Configuratio n")

With cdoConfig.Field s
.Item(cdoSendUs ingMethod) = cdoSendUsingPor t
.Item(cdoSMTPSe rver) = "<enter_mail.se rver_here>"
.Item(cdoSMTPAu thenticate) = 1
.Item(cdoSendUs ername) = "<enter_usernam e_here>"
.Item(cdoSendPa ssword) = "<enter_passwor d_here>"
.Update
End With

Set cdoMessage = CreateObject("C DO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "fr**@me.co m"
.To = "to@me.com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>

Jun 8 '06 #3
a form ready to go
http://www.powerasp.com/content/new/...ing_cdosys.asp

an article with a lot of info on cdosys
http://www.powerasp.com/content/new/...ail_cdosys.asp

"Maxelcat" <Ma******@discu ssions.microsof t.com> wrote in message
news:17******** *************** ***********@mic rosoft.com...
Hi - getting very frustrated. I would really appreciate some help here!

trying to send email via a form from my website. Have to use .asp and I
have
been round and round the houses trying to get this to work.

On my xp pro system using IIS this works - an email appears in the folder

When it is hosted I get this error message. I understood that I didn't
need
to set up any details about the host of the website. Lots of seaches
suggest
putting in the smtp address but I am not sure what to do. I have also seen
a
lot of talk about CDO.configurati on but again despite searching I can't
find
out what to do.

Can somebody please help me!!!!!!!!

Many thanks in advance

Ed

CDO.Message.1 error '80040220'

The "SendUsing" configuration value is invalid.

/version1/contact/email3.asp, line 51

Here's a cut down version of my page

the link is

http://www.freezywater-st-georges.en...act/email3.asp


<%
'here's my asp then!
'using the post method hence the request.form methods
if Request.Form("i sSubmitted") = "yes" then

Dim sMsg
'more dims....

sTo = "ed****@seldon. topdsl.co.uk"
sFrom = "fr**@wood.bear .com"
sSubject = "The rights and wrongs of this and that"

sParentName = Request.Form("M oniker") & " " & Request.Form("p arentname")
sPhone = Request.Form("p hone")
sEmail = Request.Form("e mail_address")

'etc
'etc - build up the content

Dim objMail
Set objMail = Server.CreateOb ject("CDO.Messa ge")

objMail.From = sFrom
objMail.To = sTo
objMail.Subject = sSubject
objMail.TextBod y = sTextBody

objMail.Send

Set objMail= Nothing

end if

%>

Jun 8 '06 #4

So are you the host or somebody else? If somebody else, are you sure they
support anonymous posting?


The website will be hosted by somebody else. I know they support .asp so I
assumed that if I used .asp then that's all that matters. Looks like I might
be wrong on that??????
Jun 8 '06 #5
Mnay thanks for the links.

I looked at the first - perhpas I should be less hard on myself but I
really want to understand what I am doing and this looses me...... u can tell
..... I am something of a noob to asp!!!

The second link looks more promising though. Which method should I use? I am
not using virtual server. What does "Using remote mail server" mean?

Thanks in advance

Ed
"Kyle Peterson" wrote:
a form ready to go
http://www.powerasp.com/content/new/...ing_cdosys.asp

an article with a lot of info on cdosys
http://www.powerasp.com/content/new/...ail_cdosys.asp

"Maxelcat" <Ma******@discu ssions.microsof t.com> wrote in message
news:17******** *************** ***********@mic rosoft.com...
Hi - getting very frustrated. I would really appreciate some help here!

trying to send email via a form from my website. Have to use .asp and I
have
been round and round the houses trying to get this to work.

On my xp pro system using IIS this works - an email appears in the folder

When it is hosted I get this error message. I understood that I didn't
need
to set up any details about the host of the website. Lots of seaches
suggest
putting in the smtp address but I am not sure what to do. I have also seen
a
lot of talk about CDO.configurati on but again despite searching I can't
find
out what to do.

Can somebody please help me!!!!!!!!

Many thanks in advance

Ed

CDO.Message.1 error '80040220'

The "SendUsing" configuration value is invalid.

/version1/contact/email3.asp, line 51

Here's a cut down version of my page

the link is

http://www.freezywater-st-georges.en...act/email3.asp


<%
'here's my asp then!
'using the post method hence the request.form methods
if Request.Form("i sSubmitted") = "yes" then

Dim sMsg
'more dims....

sTo = "ed****@seldon. topdsl.co.uk"
sFrom = "fr**@wood.bear .com"
sSubject = "The rights and wrongs of this and that"

sParentName = Request.Form("M oniker") & " " & Request.Form("p arentname")
sPhone = Request.Form("p hone")
sEmail = Request.Form("e mail_address")

'etc
'etc - build up the content

Dim objMail
Set objMail = Server.CreateOb ject("CDO.Messa ge")

objMail.From = sFrom
objMail.To = sTo
objMail.Subject = sSubject
objMail.TextBod y = sTextBody

objMail.Send

Set objMail= Nothing

end if

%>


Jun 8 '06 #6

"Maxelcat" <Ma******@discu ssions.microsof t.com> wrote in message
news:E6******** *************** ***********@mic rosoft.com...

So are you the host or somebody else? If somebody else, are you sure they
support anonymous posting?


The website will be hosted by somebody else. I know they support .asp so I
assumed that if I used .asp then that's all that matters. Looks like I
might
be wrong on that??????


Hi,

You cannot assume that their config is the same as yours.
However, I'm fully trusting that you can use CDO to sent SMTP mail. Just ask
your ISP for the config they might require. Such as passwords or anonymous
SMTP acceptance, and which SMTP server they use.

Cheers,

Jun 8 '06 #7

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

Similar topics

3
7052
by: Paul Lamonby | last post by:
Hi, I am sending a file from the server as an email attachment. The file is being attached no problem and sending the email, but I get an error when I try to open it saying it is corrupt. Obviuosly, the file is fine on the server, so the attachment code I am using must be corrupting it, but I dont know what it is: // send email with attachment function emailAttachment($to, $subject, $message, $name, $email,
0
522
by: praba kar | last post by:
Dear All, I have doubt regarding mail sending smtplib module. The below code is I used to send a mail. ########################################## import email.Message import email.Utils import mimetypes import os,string
3
6833
by: VB Programmer | last post by:
I have an ASPX page where I send out emails through my mail server mail.MyDomain.com. When I send emails to MyName@MyDomain.com it sends PERFECTLY. When I try sending an email to any other address (non-MyDomain.com address) I get the following error: The server rejected one or more recipient addresses. The server response was: 550 You must check your mail from this IP or SMTP Auth before sending to BSmith@Juno.com Here's the FULL...
3
3620
by: Ant | last post by:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send mail, however it's not sending any emails. I'm using it on a Windows 2003 server. The simplest way to use this is smtpMail.Send("from@here.com", to@there.com, "Message subject", "Message Body") I'm sending it to my own email address on a different server using a dummy
1
8182
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to the members of my organization. I think my problem is incorrectly setting the settings on my server or an authentication problem. Here is the code I have written to send a test message: -----Code Begins: Sensitive Information Replaced by -----...
2
12175
by: =?Utf-8?B?QWRl?= | last post by:
HI All, I am encountering the following error when I try to send an email through a SMTP server. I believe the problem lies with the authentication part when the network crednetials are used, error is thrown at the .send point. Error is: The following error occured Sending an email: System.ApplicationException: An error occurred sending an email To helen@HerMail.com From ade@MyMail.com Cc Subject A test with Finlistener #1. The body...
9
3469
by: JoeP | last post by:
Hi All, How can I find the reason for such an error: Failure sending mail. Some Code... oMailMessage.IsBodyHtml = False oMailMessage.Body = cEmailBody Dim oSMTP As New SmtpClient oSMTP.Send(oMailMessage) (in this line I am getting the above err)
7
3338
by: bleachie | last post by:
Hey, I just need some help, my form seems to not send me all of the 'guestNames' and 'guestEmails' forms. i use this function to add more guestnames and guestemail fields based on the number of guests added. form.php function createGuestNameAndEmailElements() {
10
5097
by: Markgoldin | last post by:
I am sending an XML data from not dontnet process to a .Net via socket listener. Here is a data sample: <VFPData> <serverdata> <coderun>updateFloor</coderun> <area>MD2</area> <zone>BOXING</zone> <status>Running</status> <job>1000139233</job>
31
12707
by: happyse27 | last post by:
Hi All, I am trying for weeks how to send email from windows pc, which from my gmail account to my hotmail account. Using net::smtp module sending email failed,Kindly assist. (for the item d it is working for normal email servers, but NOT with gmail server, I am very puzzled still!!) Codes(item c below) It keeps complaining and logs and codes are below. a) apache access logs --------------------------------- 127.0.0.1 - - "GET...
0
9595
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
9432
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
10232
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
10059
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
9873
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8891
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
6682
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3578
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2822
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.