|
Home > Archive > IIS and SMTP > May 2004 > Determinig pickup directory on IIS6
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Determinig pickup directory on IIS6
|
|
|
| Hi!
Im running the "built-in" SMTP server coming with IIS 6 on Win2003 Server. I want to send emails from an application on the same machine as the SMTP server. So far, no problems. I use CDOSYS and the pickup directory method.
Currently I have hard coded the pickup directory path in my test application, but in production I want to be able to re-use the same ASP pages and applications on several machines, all not having the same physical path to the pickup directory. Is there an
y way that I can query "something" in runtime to find out where the pickup directory is located or do I have to put in in the registry manually and look it up there?
Cheers,
Jonas B
| |
| Ken Schaefer 2004-05-04, 12:34 am |
| The Pickup directory is stored in the IIS Metabase, not the registry.
adsutil.vbs GET smtpsvc/1/pickupdirectory
will return the pickup directory of the 1st SMTP virtual server. You can use
the ADSI IIS:// provider directory you want (check inside adsutil.vbs for
examples on how to do this).
Cheers
Ken
"Jonas" <anonymous@discussions.microsoft.com> wrote in message
news:1FE69002-0F5C-43B2-B1B0-B53A133802D9@microsoft.com...
: Hi!
:
: Im running the "built-in" SMTP server coming with IIS 6 on Win2003 Server.
I want to send emails from an application on the same machine as the SMTP
server. So far, no problems. I use CDOSYS and the pickup directory method.
:
: Currently I have hard coded the pickup directory path in my test
application, but in production I want to be able to re-use the same ASP
pages and applications on several machines, all not having the same physical
path to the pickup directory. Is there any way that I can query "something"
in runtime to find out where the pickup directory is located or do I have to
put in in the registry manually and look it up there?
:
: Cheers,
: Jonas B
|
|
|
|
|