Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help with IIS, SMTP (via CDONTS) and ASP

56 views
Skip to first unread message

Mark

unread,
Jan 24, 2002, 8:39:17 AM1/24/02
to
I am working on a web site that automatically generates emails for a variety
of reasons. I just can't seem to get the IIS SMTP service to send the
email, it gets hung up in the queue folder until all retries have failed and
then gets moved to the badmail folder. I have tried the following:

1) I have Windows 2000 Professional on my work computer which is connected
to a LAN which has a direct (T1) connection to the internet. I have set
relaying to allow messages from this computer (127.0.0.1) and added IUSR_ to
the security list. Also, in the delivery options, I have set the
"Fully-Qualified Domain Name" to the name of my computer and set the "smart
host" option to our SMTP mail server. Same problem described above occurs.

2) I have Windows 2000 Professional on my home computer which is connected
to a the internet via Cable Modem. I have set relaying to allow messages
from this computer (127.0.0.1) and added IUSR_ to the security list. Also,
in the delivery options, I have set the "Fully-Qualified Domain Name" to the
name of my computer and set the "smart host" option to my ISP's SMTP mail
server. Same problem described above occurs.

3) I have uploaded my code to the server on which my web site is installed.
It runs full-blown IIS. I can't view the queue folder, etc. from here.
When I execute the VBScript (ASP) to create the CDONTS objects, I am able to
create the CDONTS.NewMail object, assign the to, from, subject, body
properties and even add an attachment. However, when I issue the "Send"
command, I get an "internal server error" message. I have even tried
logging in using the "CDONTS.Session" object.

Any Help would be greatly appreciated!

Thanks!

Manohar Kamath [MVP]

unread,
Jan 24, 2002, 10:24:40 AM1/24/02
to
Mark,

One simple test to check why mail does not get forwarded is to send a mail
from Outlook express, on the same machine, using the same SMTP settings and
see if it goes through. Maybe the SMTP server that gets the emails wants
some sort of authentication?

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com

"Mark" <a...@xyz.com> wrote in message news:#9fZ4yNpBHA.1956@tkmsftngp05...

Andrew Davis [MS]

unread,
Jan 24, 2002, 11:10:43 AM1/24/02
to
Mark,

When you specify the smarthost, if it's an IP address, remember to put
brackets arround it.
Like this, [123.123.123.123]
http://support.microsoft.com/support/kb/articles/q293/8/00.asp

Manohar is correct, using Outlook Express is a good way of testing the
server.

Try posting this issue in microsoft.public.exchange2000

Andrew Davis
IIS Newsgroup Support

“Please do not send email directly to this alias. This is our online
account name for newsgroup participation only.”

This posting is provided “AS IS” with no warranties, and confers no rights.
You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.

Mark

unread,
Jan 24, 2002, 11:29:17 AM1/24/02
to
Thanks. However, I already tried that. Same problem...stuck in queue.

"Manohar Kamath [MVP]" <mka...@NOEMAILPLEASEkamath.com> wrote in message
news:#jMnnqOpBHA.1596@tkmsftngp07...

Mark

unread,
Jan 24, 2002, 11:31:41 AM1/24/02
to
Thanks, but I used a url like "smtp.xxx.net".

""Andrew Davis [MS]"" <adavis...@microsoft.com> wrote in message
news:tECJxGPpBHA.2000@cpmsftngxa09...

Beat Richli

unread,
Jan 24, 2002, 12:11:38 PM1/24/02
to

"Mark" <a...@xyz.com> schrieb im Newsbeitrag
news:#9fZ4yNpBHA.1956@tkmsftngp05...

> I am working on a web site that automatically generates emails for a
variety
> of reasons. I just can't seem to get the IIS SMTP service to send the
> email, it gets hung up in the queue folder until all retries have failed
and
> then gets moved to the badmail folder. I have tried the following:

<snipped>

not a real solution but...

cdonts worked ok here when we had mail and webserver on a different physical
server. with all services on the same machines i couldn't get this thing
going (tried alot). if you have control over components on the webserver you
might as well try another mail-component.

http://www.serverobjects.com/products.htm#aspmail

this one has solved all our probs immediatly. fast easy and reliable, but it
costs about 50 bucks. evalution is available, if it saves ya time it's worth
it IMO. i guess there are free ones arround too.


Lisa Cozzens

unread,
Jan 24, 2002, 1:25:03 PM1/24/02
to
For problems 1 and 2, try the following:
- Make sure that the From address DOES contains an "@" sign and does NOT
contain a semicolon
- Check that the From address is a valid email address
- If the To address is local (for example, if your default domain is set up
as mycomputer.mycompany.com and you're trying to send a mail to
m...@mycompany.com), make your domain (mycompany.com in this example) a
remote domain and allow messages sent to that domain to be relayed.

As for problem 3, please turn off "Show friendly HTTP error messages" in
Internet Explorer if you haven't already. (It's under Tools -> Internet
Options -> Advanced tab.) What is the full text of the error message? This
can help you find the source of the problem. The following KB articles may
be useful in resolving the problem:

Q286301 - PRB: Run-time Error 800a0046 with CDONTS.Newmail Object
http://support.microsoft.com/support/kb/articles/q286/3/01.asp

Q197619 - Runtime Error '800a0046' Using the Send Method of CDONTS.NewMail
http://support.microsoft.com/support/kb/articles/q197/6/19.asp

Q294274 - PRB: Error "Object already exists" Trying to Create CDONTS Object
http://support.microsoft.com/support/kb/articles/q294/2/74.asp

Q238956 - PRB: CDONTS: Error 8007003 "Path not found error"
http://support.microsoft.com/support/kb/articles/q238/9/56.asp

Q228465 - PRB: Permission Denied While Using CDONTS to Send Mail with Exch
http://support.microsoft.com/support/kb/articles/q228/4/65.asp

Q260985 - XIMS: Minimum NTFS Permissions Required to Use CDONTS
http://support.microsoft.com/support/kb/articles/q260/9/85.asp

Also, anti-virus software sometimes interferes with the proper operation of
CDONTS. If you are getting a "permission denied" message and you have
anti-virus software installed on your server, try changing the settings to
exclude the mail pickup folder (e.g. C:\INETPUB\MAILROOT\PICKUP) from being
scanned.

--------------------
> From: "Mark" <a...@xyz.com>
> Subject: Help with IIS, SMTP (via CDONTS) and ASP
> Date: Thu, 24 Jan 2002 08:39:17 -0500
> Lines: 37
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
> Message-ID: <#9fZ4yNpBHA.1956@tkmsftngp05>
> Newsgroups:
microsoft.public.inetserver.asp.general,microsoft.public.inetserver.iis
> NNTP-Posting-Host: 63.96.247.180
> Path: cpmsftngxa09!tkmsftngxs01!tkmsftngp01!tkmsftngp05
> Xref: cpmsftngxa09 microsoft.public.inetserver.iis:191198
microsoft.public.inetserver.asp.general:168237
> X-Tomcat-NG: microsoft.public.inetserver.iis


Please do not send email directly to this alias. This is an online

0 new messages