Monday, March 26, 2012

System.Net.Mail SMTP Pickup Dir

Hi,

I am trying to write .eml files to a remote UNC directory - do you
know if this could be done, such as:

<mailSettings>
<smtp>
<network

host="localhost"
port="25"
/
<specifiedPickupDirectory pickupDirectoryLocation="\\server1\Pickup"/>
</smtp>
</mailSettings
If so, would I have to change the defaultCredentials or the security
context for ASP.NET (using machine.config)? I haven't exactly done
that before.

Thank you,
MichaelFYI: I found the answer in case anyone wonders about this. Make sure
the AppPool for the IIS web site is running as IWAM_machinename and
that the \Pickup windows share allows IWAM_machinename (using same
username/password on remote machine) write access in addition to the
NTFS write for that subdirectory is allowed.

mpaine@.htxml.com wrote:

Quote:

Originally Posted by

Hi,
>
>
I am trying to write .eml files to a remote UNC directory - do you
know if this could be done, such as:
>
<mailSettings>
<smtp>
<network
>
host="localhost"
port="25"
/>
>
<specifiedPickupDirectory pickupDirectoryLocation="\\server1\Pickup"/>
</smtp>
</mailSettings>
>
If so, would I have to change the defaultCredentials or the security
context for ASP.NET (using machine.config)? I haven't exactly done
that before.
>
>
Thank you,
Michael

0 comments:

Post a Comment