CDO.Message.1 error '80040220'

This is a discussion on "CDO.Message.1 error '80040220'" within the Classic ASP section. This forum, and the thread "CDO.Message.1 error '80040220' are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jan 12th, 2007, 15:39
Junior Member
Join Date: Dec 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
CDO.Message.1 error '80040220'

I have the following form page:
http://www.scobeymovingandstorage.co...mform_old.html

that goes to this asp page:
http://www.scobeymovingandstorage.co...semail_new.asp

and it returns this error:

CDO.Message.1 error '80040220'
The "SendUsing" configuration value is invalid.
/claimsemail_new.asp, line 202

Here is the ASP code with the line 202 highlighted:

Set sendMail=CreateObject("CDO.Message")
sendMail.Fields.Item("SmtpMail.SmtpServer") = "localhost"
sendMail.Fields.update
sendMail.Subject=Request.form("_subject")
sendMail.From=Request.form("requiredemail")
sendMail.To=myTo
sendmail.HTMLBody=myBody
sendMail.Send
set sendMail=Nothing

I added the .Fields.Item lines because I did a search on Google for this error and it said that would fix it.. but its not..

I have NO idea why this is happening.. it works fine on other asp servers..

supposed to get htis out TODAY so any help would be greatly appreciated.

Thanks!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jan 12th, 2007, 17:18
Junior Member
Join Date: Dec 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSO.Message.1 error '80040220'

On t his server it works:
http://www.coleyinc.com/scobeytest/claimform_old.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jan 12th, 2007, 18:33
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,669
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
Re: CDO.Message.1 error '80040220'

Read this thread:
http://forums.aspfree.com/asp-develo...20t-47913.html

This seemed to work:

try:

<!--
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>"
.Update
End With

Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "from@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
%>
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
errors

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
error message of webmail begeiste PHP Forum 2 May 27th, 2008 19:39
Keep getting error message Microsoft VBScript runtime error '800a01a8' cpando1974 Classic ASP 2 Aug 7th, 2007 12:00
Please Help Fix This Error Message DannyP43 JavaScript Forum 3 Sep 26th, 2006 22:04
Why error message in status bar? Sofie PHP Forum 11 May 13th, 2006 18:23
error message cant get straight monkboy12345 PHP Forum 1 Apr 15th, 2005 21:34


All times are GMT. The time now is 08:18.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42