www.webdeveloper.com
Results 1 to 3 of 3

Thread: CDOSYS HTTP 500 error

  1. #1
    Join Date
    May 2012
    Posts
    1

    CDOSYS HTTP 500 error

    I am trying to familiarise my self.. so please be patient! a total nubie….

    The following is copied from http://www.w3schools.com/asp/asp_send_email.asp

    I am working my way through the tutorials… everything works so far… until I try this….
    Examples using CDOSYS
    Sending a text e-mail:
    <%
    Set myMail=CreateObject("CDO.Message")
    myMail.Subject="Sending email with CDO"
    myMail.From="mymail@mydomain.com"
    myMail.To="someone@somedomain.com"
    myMail.TextBody="This is a message."
    myMail.Send
    set myMail=nothing
    %>

    I am trying this on a local machine with Vista Ultimate and IIS 6 installed with these features

    http://www.froggshalllimited.co.uk/IIS.jpg

    But with myMail.Send this results in HTTP500 internal server error

    What am I missing?

  2. #2
    Join Date
    Oct 2005
    Posts
    9
    Use following and provide data according to your server settings:

    '#Text body email NOT html
    set objMail = Server.CreateObject("CDO.Message")

    objMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    objMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "info@yourdomain.com" '#smtp address
    objMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25'#smtp port
    ' objMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1

    ' objMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "verfiyemail@yourdomain.com" '#validation email
    ' objMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password" '#validation password

    objMail.Configuration.Fields.Update

    objMail.From = "Zeeshan Dar <info@irealtysolution.net>" '#sender email
    objMail.To = "receiver@email-address.com" '#receiver email
    objMail.BCC = ""

    objMail.Subject = "Email subject" '#email subject
    objMail.TextBody = "Email body" '#message body

    objMail.Send '#send email
    set objMail = nothing

  3. #3
    Join Date
    Mar 2006
    Location
    Discworld
    Posts
    75
    I would recommend to look here:
    http://www.vbforums.com/showthread.php?t=560446
    Similar problem and solution right there.
    Last edited by alexsts; 06-05-2012 at 09:25 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles