Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004
    Posts
    1

    Unanswered: error 80040211 in autosend email program with ASP

    Ok, I tried to find the solution for this problem, but no luck. Someone plz help. I'm using IIS 5.1 in Windows XP and I also have installed CDONTS.dll on the machine.

    I get an error when I tried to run the program
    =================================
    error '80040211'
    /test2.asp, line 23

    line 23: objMail.Send
    ================================
    The complete program as follows:
    ==========================
    <!--METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB-00C04FB1625D" NAME="CDO for Windows 2000 Library" -->
    <!--METADATA TYPE="typelib" UUID="00000205-0000-0010-8000-00AA006D2EA4" NAME="ADODB Type Library" -->

    Dim objMail
    Set objMail = Server.CreateObject("CDO.Message")
    Set objConfig = Server.CreateObject("CDO.Configuration")

    'Configuration:
    objConfig.Fields(cdoSendUsingMethod)=cdoSendUsingP ort
    objConfig.Fields(cdoSMTPServer)="localhost"
    objConfig.Fields(cdoSMTPServerPort)=25
    objConfig.Fields(cdoSMTPAuthenticate)=cdoBasic

    'Update configuration
    objConfig.Fields.Update
    Set objMail.Configuration = objConfig

    objMail.From ="admin@hotmail.com"
    objMail.To = "user@hotmail.com"
    objMail.Subject ="Contact from your site"
    objMail.TextBody="This is a test for CDO.message"
    objMail.Send

    Set objMail=Nothing
    Set objConfig=Nothing
    =====================================

  2. #2
    Join Date
    Mar 2003
    Location
    Memphis, TN, USA
    Posts
    61
    Please go to the following link

    http://www.mail-archive.com/beginnin.../msg10346.html


    and look whether it sort out your issue or not ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •