472,344 Members | 1,294 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,344 software developers and data experts.

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.configuration 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("isSubmitted") = "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("Moniker") & " " & Request.Form("parentname")
sPhone = Request.Form("phone")
sEmail = Request.Form("email_address")

'etc
'etc - build up the content

Dim objMail
Set objMail = Server.CreateObject("CDO.Message")

objMail.From = sFrom
objMail.To = sTo
objMail.Subject = sSubject
objMail.TextBody = sTextBody

objMail.Send

Set objMail= Nothing

end if

%>
Jun 8 '06 #1
6 12357

"Maxelcat" <Ma******@discussions.microsoft.com> wrote in message
news:17**********************************@microsof t.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.configuration 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("isSubmitted") = "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("Moniker") & " " & Request.Form("parentname")
sPhone = Request.Form("phone")
sEmail = Request.Form("email_address")

'etc
'etc - build up the content

Dim objMail
Set objMail = Server.CreateObject("CDO.Message")

objMail.From = sFrom
objMail.To = sTo
objMail.Subject = sSubject
objMail.TextBody = sTextBody

objMail.Send

Set objMail= Nothing

end if

%>


Jun 8 '06 #2

"Maxelcat" <Ma******@discussions.microsoft.com> wrote in message
news:17**********************************@microsof t.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.configuration 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("CDO.Configuration")

With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "<enter_mail.server_here>"
.Item(cdoSMTPAuthenticate) = 1
.Item(cdoSendUsername) = "<enter_username_here>"
.Item(cdoSendPassword) = "<enter_password_here>"
.Update
End With

Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "fr**@me.com"
.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******@discussions.microsoft.com> wrote in message
news:17**********************************@microsof t.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.configuration 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("isSubmitted") = "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("Moniker") & " " & Request.Form("parentname")
sPhone = Request.Form("phone")
sEmail = Request.Form("email_address")

'etc
'etc - build up the content

Dim objMail
Set objMail = Server.CreateObject("CDO.Message")

objMail.From = sFrom
objMail.To = sTo
objMail.Subject = sSubject
objMail.TextBody = 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******@discussions.microsoft.com> wrote in message
news:17**********************************@microsof t.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.configuration 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("isSubmitted") = "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("Moniker") & " " & Request.Form("parentname")
sPhone = Request.Form("phone")
sEmail = Request.Form("email_address")

'etc
'etc - build up the content

Dim objMail
Set objMail = Server.CreateObject("CDO.Message")

objMail.From = sFrom
objMail.To = sTo
objMail.Subject = sSubject
objMail.TextBody = sTextBody

objMail.Send

Set objMail= Nothing

end if

%>


Jun 8 '06 #6

"Maxelcat" <Ma******@discussions.microsoft.com> wrote in message
news:E6**********************************@microsof t.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
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...
0
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. ...
3
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....
3
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...
1
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...
2
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...
9
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 =...
7
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...
10
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>...
31
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...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...

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.