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.
Hi manionasp,
Refer below article.
Do we need to hardcode sender email password for sending email?
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.