Click here to Skip to main content
15,879,239 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
wpf application for sending mail from datagrid values which is fetched from the excel


What I have tried:

i tried upto fetching excel data .i need to send mail for selected row in datagrid
Posted
Updated 15-Mar-18 12:48pm
Comments
Richard Deeming 15-Mar-18 16:00pm    
What you've got there is not a question. It's a Google search term.

If you were expecting someone to write the code for you and give it to you to present as your own work, you've come to the wrong site.

And quite frankly, even if you'd gone to the right site, you haven't provided enough detail.

1 solution

The question is made up of many moving parts.

Break it down into its individual units to make it easier for you to work with:

1. Service layer:
* sending mail - MS internal API or using 3rd party library; write code to send an email as a contained service
* data from MS Excel - use MS Interop, 3rd party tool, or other; write code to send an email as a contained service

2. UI Layer:
You can use with either WinForm or WPF UI System. You have chosen WPF, so now:
* code behind or MVVM design patterns - This will determine how you wire up the DataGrid. The DataGrid is just a way for the app to communicate with the user.

Google each part if you are unfamiliar with them. Get each part working individually and do the UI last.

If you get stuck for an individual part, not the whole app's needs, now in a question, outline:
1. what you are trying to do
2. your test code
3. what you have tried, any error codes, where have they occurred, what the debugger is telling you, etc ... then we are in a better position to help you.
 
Share this answer
 
Comments
Member 13721474 16-Mar-18 3:36am    
How to get the value from datagrid and send to mail using EPPLUS?The datagrid have the values like to,attachment,content.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900