Okay how about this?
Set objMessage = Server.CreateObject("CDO.Message")
objMessage.Subject = "Test Subject"
objMessage.Sender = "us**@domain.com"
objMessage.To = "us**@domain.com"
objMessage.TextBody = "Test Body"
objMessage.Send
When I try to run that it tells me:
CDO.Message.1 error '80070005'
Access is denied.
/mail.asp, line 24
This is running on the same box as an Exchange server. Now I'm pretty sure
I need to change the permissions, but I'm not sure where.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:eu****************@TK2MSFTNGP12.phx.gbl...
Well, the fact that you're asking implies you're getting an error. But to
answer your question, no. You're using CDONTS properties on CDO. Instead
of .Body use .HTMLBody or .TextBody, IIRC.
Ray at work
"- Steve -" <se****@foundation.sdsu.edu> wrote in message
news:uj**************@TK2MSFTNGP12.phx.gbl... Shouldn't this code do it on a Win2k3 box.
Set oMsg = Server.CreateObject("CDO.Message")
oMsg.From = "ad*****@domain.com"
oMsg.To = "ad*****@domain.com"
oMsg.Subject = "Subject"
oMsg.Body = "Body"
oMsg.BodyFormat = 1 '1=Text, 0=HTML
oMsg.MailFormat = 1 '1=Text, 0=MIME
oMsg.Send