c# - SMTP mail to pickup and send from exchange -


i have created simple mail service c# connects smtp , sends mail. connecting smtp slow method. changed delivery settings web.config specifiedpickupdirectory.

<system.net>     <mailsettings>         <smtp deliverymethod="specifiedpickupdirectory" >                 <specifiedpickupdirectory pickupdirectorylocation="c:\myemails"/>         </smtp>     </mailsetting>     ... </system.net> 

my application writes email contents *.eml files disc.

is there way sending these emails automatically exchange server service.

yes, it's simple. download exchange webservice dll(s) here: https://www.microsoft.com/en-au/download/details.aspx?id=35371

reference dll(s) in projects , send emails using code that's smtp client.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -