Sometimes you need to check email sending locally and since you cannot send it over the network so there is a way to send your emails to you hard drive.
I am going to provide the Web.config settings which have been required to send email to local disk. Below are the setting which you can copy and paste in Web.config:
<configuration>
<system.net>
<mailSettings>
<smtp deliveryMethod="SpecifiedPickupDirectory"
from="sender@mailserver.com">
<specifiedPickupDirectory pickupDirectoryLocation="C:\EmailFolder" />
</smtp>
</mailSettings>
</system.net>
</configuration>
This will create .eml Emails files to the specified folder (here, C:\EmailFolder), which
must already exist. If you double-click .eml email files in Windows Explorer,
they’ll open in Outlook Express or Windows Mail.
Hope this will help.
I am going to provide the Web.config settings which have been required to send email to local disk. Below are the setting which you can copy and paste in Web.config:
<configuration>
<system.net>
<mailSettings>
<smtp deliveryMethod="SpecifiedPickupDirectory"
from="sender@mailserver.com">
<specifiedPickupDirectory pickupDirectoryLocation="C:\EmailFolder" />
</smtp>
</mailSettings>
</system.net>
</configuration>
This will create .eml Emails files to the specified folder (here, C:\EmailFolder), which
must already exist. If you double-click .eml email files in Windows Explorer,
they’ll open in Outlook Express or Windows Mail.
Hope this will help.
No comments:
Post a Comment