2012-05-03 15 views
1

在我的网络配置中,我可以设置交付方式=网络,还是将其保存在指定的PickupDirectory中或为此,我需要始终写入不同的应用程序?如何使用交付方式=“网络”将电子邮件保存到某个位置

<mailSettings> 
    <smtp deliveryMethod="Network" from=""> 
     <network defaultCredentials="true" host="" password="" port="25" userName="" /> 
     <specifiedPickupDirectory pickupDirectoryLocation="C:\SentMail" /> 
    </smtp> 
</mailSettings> 

回答

3

试试这个:

<mailSettings> 
    <smtp deliveryMethod="Network"> 
     <network host="mail.mydomain.com" port="25" /> 
    </smtp> 

    <!-- Use this setting for development 

    <smtp deliveryMethod="SpecifiedPickupDirectory"> 
     <specifiedPickupDirectory pickupDirectoryLocation="C:\Temp" /> 
    </smtp> --> 
</mailSettings> 

here接过。

+0

在这里,我必须编写另一个应用程序来转发保存的电子邮件,但我想使用交付方式网络,并希望将电子邮件也保存在一个位置,在指定的目录... – NoviceToDotNet

+0

@ NoviceToDotNet - 这是不可能的。 – coder

相关问题