hi.
i have this code that works when done with a vbscript on a local machine that's connected to internet.
but when i put this in the intranet using asp, it doesn't work:
any ideas why it's not working on the server?
thanks.
i have this code that works when done with a vbscript on a local machine that's connected to internet.
Code:
from_addr = "me@somwewhere.com"
to_addr = "recipient@somwhereelse.com"
msg_subj = "testing email with cdo"
msg_body = "this is a test message"
Set myMail=CreateObject("CDO.Message")
myMail.Subject=msg_subj
myMail.From=from_addr
myMail.To=to_addr
myMail.TextBody=msg_body
myMail.Send
set myMail=nothing
Code:
<%
response.write "started program<br>"
from_addr = "me@somewhere.com"
to_addr = "recipient@somewhereelse.com"
msg_subj = "testing email with cdo"
msg_body = "this is a test message"
Set myMail=CreateObject("CDO.Message")
myMail.Subject=msg_subj
myMail.From=from_addr
myMail.To=to_addr
myMail.TextBody=msg_body
myMail.Sendusing
set myMail=nothing
response.write "finished program<br>"
%>
thanks.