Results 1 to 2 of 2

Thread: CDONTS help, please

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    323
    Here is my code. I get an email sent to the correct email box but it's empty. No subject, no from, no body, etc. Please help. thanks

    Code:
    Dim objMail
    
    strMailBody = "A new web application has been requested by " & Request.Form("name")
    strMailBody = strMailBody + Chr(13) & Chr(13)
    strMailBody = strMailBody + "(URL goes here)."
    strMailBody = strMailBody + Chr(13) & Chr(13)
    strMailBody = strMailBody + "The approval process should be finished no later than " & Date + 7 & ", Please reply before that time."
    strMailBody = strMailBody + Chr(13) & Chr(13)
    strMailBody = strMailBody + "Thank you."
    
    Set objMail = Server.CreateObject("CDONTS.Newmail")
    objMail.From = "Mail"
    objMail.To = "(email address is here)"
    objMail.Subject = "New Website Request"
    objMail.Body = strMailBody
    objMail.Send
    Set objMail = Nothing
    Thank you for any help.
    If you think education is expensive, try ignorance.

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Canada
    Posts
    264
    Well, the code looks fine to me ..

    you can try using Jmail.

    http://tech.dimac.net/

    I know it is working ... :-)
    In the beginning the universe was created. This has made a lot of people very angry and is generally regarded as a bad idea.

    - Douglas Adams
    The Hitchhiker's Guide to the Galaxy

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