Results 1 to 3 of 3

Thread: why won't this fire off an e-mail?

  1. #1
    Join Date
    Dec 2002

    why won't this fire off an e-mail?

    Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
    objCDOMail.To = "a@b.com" 'the destination
    objCDOMail.From = "a@b.com" 'the sender
    txtbody = ""
    objCDOMail.Subject = "Broadcast Requirements for " & EventTitle
    txtbody = message & newline & newline & BroadcastReq & newline & AccBroadcast
    txtbody = txtbody & txtURL
    objCDOMail.Send 'fire off the email
    set objCDOMail = nothing

  2. #2
    Join Date
    Jun 2004
    Kansas City, MO
    hey snajuT, your code is fine and works correctly.
    I cut and pasted into my project to test it and it works fine.

    Your server may not be set up to send mail like this. You are using SMPT by using this method and your server may not be set up or be able to do it. Not sure exactly why and im sure other people could explain better.

    Do a google search.

    But as far as your code goes. it is correct and it does work.

  3. #3
    Join Date
    Dec 2002

    I'll research why i am having problems.

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