Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > iis smtp nntp > february 2005 >

iis smtp nntp : CDO not sending to my internal domain



paul_500 NO[at]SPAM hotmail.com
2/25/2005 2:02:58 AM
I have tried using both CDO and CDONTS in VBScript on an ASP page to
send an email (developing on Win 2000). It works when I send mail to
an address outside my domain, but when I send to an address inside the
my domain I get nothing - no error, and no email.
My code is as follows:

CDONTS:

Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.To = me@mydomain.com
objCDO.From = webmaster@mydomain.com
objCDO.bcc= me@hotmail.com
objCDO.Subject = "test"
objCDO.Body = strBody
objCDO.Importance = 2
set objCDO = Nothing

CDO:

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.Sender = "webmaster@mydomain.com"
objMessage.To = "me@mydomain.com"
objMessage.TextBody = "test"
objMessage.Send

jeff.nospam NO[at]SPAM zina.com
2/25/2005 3:27:57 PM
[quoted text, click to view]

If it works to an outside destination and not an inside one, it's not
your code. Best guess is your SMTP server can't reach the internal
mail server. Since W2K has no POP server in it, you must be using a
third party mail server program, possibly on a separate system. Check
the SMTP logs to see if there is a clue as to what's happening.

Jeff

[quoted text, click to view]
AddThis Social Bookmark Button