Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending Email Via CDONTS.Newmail 2

Status
Not open for further replies.

Skittle

ISP
Sep 10, 2002
1,528
US
I have inherited an ASP site that sends email via an object defined as:-

Code:
Set objNewMail = Server.CreateObject("CDONTS.Newmail")
ObjNewMail.From = "Somebody@somewhere.com"
ObjNewMail.To = "Somebodyelse@somewhere.com"
ObjNewMail.Subject = "Subject"
ObjNewmail.Send

No errors or email is transmitted.
I have looked in IIS and found there are a few settings
none of which I really understand.

There is a 'Relay Restriction' IP address set to identify computers that may relay through the Default SMTP Service in IIS. The IP is the same as a defined Domain IP
within the Default SMTP Service.

Aprt from that I don't see anything obvious. Is there some way I can check this 'Relay' service and what is it??




Dazed and confused
 
1. Did it work in the past? If so what changed?

2. Are the emails stacking up in the inetpub\mailroot\badmail or \queue folders?
 
In your SMTP virtual server in IIS, if you go to properties,--> Delivery--> Advanced. In there if you enter the smart host, i.e. the email exchange server which you use to send emails and enter the name of your computer in the fully qualified domain name. Try this.
 
Thanks chaps.

I found the problem.

The SMTP virtual server was pointing at the wrong location.
Also the authentication was failing with the account used
as the source for the emails. It was hard coded in the domain with a password that had expired some time ago.

Thanks for your help.


Dazed and confused
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top