To create windows service get sql data to import excel sheet and send the data through outlook mail set a time?
Loading
To create windows service get sql data to import excel sheet and send the data through outlook mail set a time?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal JoshiPosted Feb 14, 2023, 7:59 AM
Hello Naveen,
Please check the below article to create window service runs at a specific time.
https://www.c-sharpcorner.com/article/create-window-service-in-net-core/
For importing data from excel to SQL server please refer below article.
https://www.c-sharpcorner.com/article/import-excel-data-into-sql-table-using-sqlbulkcopy-in-c-sharp/
Thanks
Vishal YelvePosted Feb 14, 2023, 6:17 AM
Hi Naveen,
try this hope this will help
Rajeesh MenothPosted Feb 14, 2023, 5:44 AM
Hi Naveen,
You can go through my article, If doubt please reach out to me.
https://www.c-sharpcorner.com/UploadFile/2a6dc5/send-multiple-email-with-attachment-using-Asp-Net-with-C-Sharp/
Note: complete code I have given in my article attachment section.
Jignesh KumarPosted Feb 14, 2023, 4:58 AM
Hi Naveen,
Please refer this link which will help you,
https://www.c-sharpcorner.com/UploadFile/4b0136/sending-email-with-an-attached-file/