Click here to Skip to main content
15,893,190 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello,

I'm trying to create an asp.net 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
Comments
Sergey Alexandrovich Kryukov 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?
--SA
I.explore.code 2-Oct-12 17:14pm    
I could totally go for it if someone could "pint" me ;) a little booze is always good...
KSELVA KUMAR 3-Oct-12 5:26am    
can any one tell the solution for this question

* how to use email link including random numbers like https://mail.google.com/mail/13a25e1d5feee900 .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

* *
-
U

1 solution

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.
 
Share this answer
 

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