Results 1 to 3 of 3

Thread: CDOSYS probs

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2004
    Posts
    162

    CDOSYS probs

    i don't know what the prob is with this
    VB Code:
    1. <%@LANGUAGE="VBSCRIPT"%>
    2. <%
    3. If request.servervariables("CONTENT_LENGTH") <> 0 THEN
    4. Set objEMail = Server.CreateObject("CDO.Message")
    5. Set objConfig = Server.CreateObject("CDO.Configuration")
    6. Set Confi = objConfig.Fields
    7. Confi("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1
    8. Confi("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "C:\inetpub\mailroot\pickup"
    9. Confi.Update
    10. Set objEMail.Configuration = objConfig
    11. objEMail.To = "[email protected]" 'i have inputed a valid address while testing here
    12. objEMail.From = Request("from")
    13. objEMail.Subject = Request("subject")
    14. objEMail.TextBody = Request("message")  
    15. objEMail.Send
    16. Set objEMail = Nothing
    17.  
    18. Response.Write("Message Sent")
    19. Else
    20.  
    21. %>
    22. <html>
    23. <body>
    24. <form method="post" action="stupid.asp">
    25. From Email: <INPUT type=text name="from"><br />
    26. Subject: <INPUT type=text name="subject"><br />
    27. Message: <TEXTAREA name="message" rows=10 cols=40></TEXTAREA><br />
    28. <INPUT type="submit" value="Send" name="submit">
    29. </form>
    30. </body>
    31. </html>
    32. <%
    33. End If
    34. %>

    the mail never gets delivered. this is copied straight from a tutorial

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Obvious q, but is the server configured properly to send emails?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2004
    Posts
    162
    i don't know, since it is configured to use the microsoft smtp server. if i tried to use my server, i get a http500 error. but i configured my server to use pop3 and smtp. i had this prob before and could never get it to work. it would always go through with no error, and nothing would show up in the que

Posting Permissions

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



Click Here to Expand Forum to Full Width