2012-05-03 13 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

相關問題