Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) 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 8th, 2005, 11:13 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 Send Mail issue

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?



 
Old August 9th, 2005, 04:31 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Calverstine,

As this isn't really ASP related, I think you're better of posting this in one of the ASP forums here on p2p.wrox.com.

That may get you a quicker answer....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Send mail and attachments with PHP mail function Lofa Beginning PHP 1 June 2nd, 2008 03:24 PM
How to send mail Jolley_tolson PHP How-To 0 August 13th, 2007 03:38 AM
Send Mail Task Issue ninel SQL Server DTS 1 April 10th, 2006 03:41 PM
Not able to send a mail hums .NET Framework 2.0 5 November 16th, 2004 03:56 AM
The mail can't be send jabby General .NET 2 September 8th, 2004 05:14 AM





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