SMTP Pickup Directory
Posted on 2004-11-02
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?