why won't this fire off an e-mail?
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.To = "email@example.com" 'the destination
objCDOMail.From = "firstname.lastname@example.org" '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
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.
I'll research why i am having problems.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)