Link to home
Start Free TrialLog in
Avatar of killer5
killer5

asked on

SMTP Pickup Directory

Our web site is hosted under 2 different web servers.
We use a custom DLL to send mails.  This DLL is registered to both web servers.

I'm having problems sending emails because the two web servers have different pickup directories.
one uses drive c:\ while the other uses d:\.  In my code, I don't specify the pickup directory, so it always gets the default which is c:\inetpub\mailroot\pickup.  When the other server is up, it fails to send the message because it is using d:\inetpub\mailroot\pickup.  

Our administrators do not want to modify their SMTP settings. So, I guess we have to work on the code to dynamically switch to pickup directories of the current web servers.  For this, I need to have a function that will get the pickup directory of the web server. Do I need to set any other property aside from the pickupdirectory?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of Dave_Dietz
Dave_Dietz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial