Reputation: 10815
In my web config can i do setting delivery method=network and still it get saved in specifiedPickupDirectory or for that i need to always write a different application?
<mailSettings>
<smtp deliveryMethod="Network" from="">
<network defaultCredentials="true" host="" password="" port="25" userName="" />
<specifiedPickupDirectory pickupDirectoryLocation="C:\SentMail" />
</smtp>
</mailSettings>
Upvotes: 1
Views: 1153
Reputation: 13248
Try this:
<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>
Took from here.
Upvotes: 3