« Previous Next »

Answered Thread: http 500. Help, my form mail in wrong

Last post 05-10-2009 10:12 PM by steve schofield. 1 replies.

 

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 05-10-2009, 4:28 PM

    • coma
    • Not Ranked
    • Joined on 05-10-2009, 8:08 PM
    • Posts 1

    http 500. Help, my form mail in wrong

     I have vista premium home and IIS 7

    I am using dreamweaver cs3 and i beginner to asp.

    My problem is that the ie says http 500.

    My code of the page is 

    <%
    theSchema="http://schemas.microsoft.com/cdo/configuration/"
    Set cdoConfig=server.CreateObject("CDO.Configuration")
    cdoConfig.Fields.Item(theSchema & "sendusing")= 2
    cdoConfig.Fields.Item(theSchema & "smtpserver")="smtp.gmail.com"
    cdoConfig.Fields.Update
    set cdoMessage=Server.CreateObject("CDO.Message")
    cdoMessage.Configuration=cdoConfig

    cdoMessage.From="yourname@yourserver.com"
    cdoMessage.To="yourname@yourserver.com"
    cdoMessage.Subject="This is the message subject"
    cdoMessage.TextBody="This is the message body"
    cdoMessage.Send

    Set cdoMessage=Nothing
    Set cdoConfig=Nothing
    %>

    where is my mistake, that ie says http 500?

    i found the code in a book of tutorial asp.

    thanks

     

  • 05-10-2009, 10:12 PM In reply to

    Answered Re: http 500. Help, my form mail in wrong

    You probably need to authenticate and update the FROM, TO fields. 

    http://www.developerbarn.com/asp-code-samples/19-sending-email-using-cdosys-classic-asp.html

    Steve Schofield
    Windows Server MVP - ASP.NET / IIS
    http://www.iislogs.com/steveschofield

    http://www.IISLogs.com
    Enterprise Log management solution
    Install, Configure, Forget

    Questions on Microsoft SMTP Service - visit http://www.smtp.ws
    IIS Community Newsletter - visit http://www.iisnewsletter.com
Page 1 of 1 (2 items)