Send email with attachment using Windows Service in C# and VB.Net

Last Reply 19 days ago By dharmendr

Posted 19 days ago

I need to create a Windows Task scheduler to send email with excel attachment (which is saved in local drive) using C#. Scheduler should automatically triggers email daily at 8PM. 


Posted 19 days ago

Do we need to hardcode sender email password for sending email?


Posted 19 days ago

No its not nessary to hard code sender email password. You can save it in database or in app / web config. Then retrieve and assign it from code behind.

I agree, here is the link: https://www.e-iceblue.com/Introduce/spire-office-for-net-free.html