1

在我的网络配置中,我可以设置交付方法 = 网络,但它仍然保存在指定的拾取目录中,还是我需要始终编写不同的应用程序?

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

1 回答 1

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>

取自这里

于 2012-05-03T08:12:38.160 回答