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.
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.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.