Click here to Skip to main content
11,719,973 members (81,850 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET ADO.NET

I'm trying to create an application that can send emails. The user will have a drop down list with the email type and upon selection, the body of the email will be filled with a message from a database. I did this before but the message was hardcoded. The issue I have is on how to create the table in db and pass it to the text box for the body of the email.
I'm sorry if my question sounds weird but I'm really new at this and any help or article that you can pint me to would be greatly appreciated.
Posted 2-Oct-12 8:54am
Sergey Alexandrovich Kryukov at 2-Oct-12 16:13pm
It's not just weird, more importantly, this is unclear. What did you try? What's the problem? Why messages are in database, what's the general approach? Ultimate goal?
gladiatron at 2-Oct-12 17:14pm
I could totally go for it if someone could "pint" me ;) a little booze is always good...
Member 9006881 at 3-Oct-12 5:26am
can any one tell the solution for this question

* how to use email link including random numbers like .and after that if user clink the link means after only the mail should Activate , but the 13a25e1d5feee900 this part of numbers should be random

* *

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

you can go like this,

store your email body messages to your database table, and on your dropdwon selected index change event you can fire select query with filter criteria based on selected value and get particular message from database table and bind that text to your text box.

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 495
1 OriginalGriff 309
2 F-ES Sitecore 225
3 Suvendu Shekhar Giri 140
4 Maciej Los 100
0 Sergey Alexandrovich Kryukov 1,869
1 OriginalGriff 770
2 F-ES Sitecore 640
3 Maciej Los 609
4 Richard MacCutchan 540

Advertise | Privacy | Mobile
Web03 | 2.8.150901.1 | Last Updated 4 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100