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 August 9th, 2005, 08:15 PM
Authorized User
 
Join Date: Aug 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Calverstine Send a message via MSN to Calverstine
Default Sen Mail Issue

javascript:insertsmilie(':)')
Smile :) i am implementing a send mail functionalities inside dreamweaver,
after i have establisha connection from databse tat retrieve the email from the email field,
i configured the message object using CDO,Message mail object.

the code are as below:
    Set cdoConfig = CreateObject("CDO.Configuration")

    With cdoConfig.Fields
        .Item(cdoSendUsingMethod) = cdoSendUsingPort
        .Item(cdoSMTPServer) = "127.0.0.1"
        '.Item(cdoSMTPAuthenticate) = 1
        '.Item(cdoSendUsername) = ""
        '.Item(cdoSendPassword) = ""
        .Update
    End With

    Set cdoMessage = CreateObject("CDO.Message")

    With cdoMessage
        Set .Configuration = cdoConfig
        .From = "[email protected]"
        .To = email
        .Subject = "Retrieve Lost Password"
        .TextBody = "Username: " & rs("username") & " and Password: " & rs("password")
        .Send
    End With

but when i execute the code it says my line 28 or the line starts with the bold letter .Item(cdoSendUsingMethod) = cdoSendUsingPort , has shown error on the result page and the full error message is:

Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.

anybody care to help me out?:):)






Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail issue [email protected] PHP How-To 2 December 10th, 2009 04:55 AM
Send Mail Task Issue ninel SQL Server DTS 1 April 10th, 2006 03:41 PM
Send Mail issue Calverstine Dreamweaver (all versions) 1 August 9th, 2005 04:31 PM
Sending both text mail and HTML mail - CDONTS madhukp Classic ASP Basics 1 October 8th, 2003 01:05 AM





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