Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 15th, 2004, 12:59 PM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default CDO.Message error- SendUsing config value

I am trying to write an email form using cdosys, but I am getting the following error
-The "SendUsing" configuration value is invalid

It seems like everybody in the world is having this problem. I've looked through a ton of post and tried everything. Following is my code:

set objMail=Server.CreateObject("CDO.Message")
set cdoConfig = Server.CreateObject("CDO.Configuration")
With cdoConfig.Fields
    .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mysmtp.server.com"
    .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    .Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
    .Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "username"
    .Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password"
    .Update
End With

With objMail
    .SUBJECT = "Help Form"
    .SENDER = "[email protected]"
    .TO = "[email protected]"
    .HTMLBody = "Email body"
    .Send
End With
set objMail = Nothing
set cdoConfig = Nothing


Unless I am missing something obvious, I think it has something to do with smtp authentication. Any help would be greatly appreciated.

Dave





Similar Threads
Thread Thread Starter Forum Replies Last Post
Email Code: Error: "SendUsing" invalid misskaos Classic ASP Basics 7 October 25th, 2010 03:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.