If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > CDO error: The "SendUsing" configuration value is invalid

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-07-09, 18:03
oliflorence oliflorence is offline
Registered User
 
Join Date: Aug 2004
Posts: 96
CDO error: The "SendUsing" configuration value is invalid

Hi,
I normally use the Jmail component in ASP to send emails server side.
I am moving on a server which doesn't have the Jmail components so i am
trying to use CDO but I am getting an error:

Here is my script, this is coming from a sample script:

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = "info@xxxxx.com"
objMessage.To = "info@yyy.com"
objMessage.TextBody = "This is some sample message text."
objMessage.Send


And here is the error:

CDO.Message.1 error '80040220'

The "SendUsing" configuration value is invalid.

/sendmail.asp, line 10

I read on forums that the CDO needed to be enabled on the server but
looking at the error message it seems more like a configuration
problem, Can any one assist??
Reply With Quote
  #2 (permalink)  
Old 09-08-09, 07:39
oliflorence oliflorence is offline
Registered User
 
Join Date: Aug 2004
Posts: 96
Got it working, there is some configuration required on a remote server (this script in in JS):

Code:
var myMail=Server.CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="xxx"
myMail.To="xxxxx"
myMail.HTMLBody="<p>This is my HTML message.</p>"
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
//Name or IP of remote SMTP server
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="xxxx"
//Server port
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25 
myMail.Configuration.Fields.Update();
myMail.Send();
Reply With Quote
  #3 (permalink)  
Old 09-08-09, 09:51
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,042
What was the missing configuration? Allow open relay from the ASP server?
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
Reply

Thread Tools
Display Modes

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