Hi friend ,
I have one page ContactUs
in which user fill there details on click of submmit button i get mail which conten details of perticular user
My doubt is that how i will show Email of that user in my Admin Page
plz help
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Benjamin KemnerRank #7,492 · 240 reputationPosted Jul 26, 2011, 2:32 AM EDT
sagar Bhosale162 reputationPosted Jul 26, 2011, 7:56 PM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Jul 26, 2011, 8:30 PM EDT
Suthish NairRank #92 · 22.8K reputationPosted Jul 26, 2011, 9:59 PM EDT
Anil KumarRank #367 · 6.8K reputationPosted Jul 26, 2011, 10:24 PM EDT
You can do it as Benjamin said.
You need to store the information in database while sending email. In this way you will have two options to know/get user's enquiry - 1) checking your email and 2) From your Admin page
Your Admin page can have a div/grid etc. to show latest enquiry. Once you clicked & read a record, mark that record as Read in your table. So that this will always show you only un-read enquiry.
sagar Bhosale162 reputationPosted Jul 26, 2011, 11:01 PM EDT
name,email,subject,Message all this field present
onnce perticular user click on submitt button i got email in my gmail account
my doubt is how i do to get same informaion in my Admin Page
i say that whatever message i get in my gmail account how i get same message in my admin page
Thanx
Sam HobbsRank #107 · 20.5K reputationPosted Jul 27, 2011, 12:18 PM EDT
There are many details of your system that we don't know about and that is probably why no one is helping. If you can think like a developer then you can provide the information we need to help you. If you can think like a developer then you might be able to solve it yourself.
sagar Bhosale162 reputationPosted Jul 27, 2011, 7:59 PM EDT
when user fill contact us page on submit button i get email which contain perticular user information i used smtp server for
sending mail
I am Admin person so in my Admin page i want to display email which is send by user
is it possible for on submmit button email send as well as information stored in my database table
so i will retrive that data in my admin page
Thanx
Benjamin KemnerRank #7,492 · 240 reputationPosted Jul 27, 2011, 9:43 PM EDT
Anil KumarRank #367 · 6.8K reputationPosted Jul 27, 2011, 10:01 PM EDT
You set a sender email ID (that will be offcourse your) and also a To email ID ( this will also yours). And then get set the contents page. Here I am giving an example by below link -
http://www.c-sharpcorner.com/UploadFile/anjudidi/EmailSend10132009022448AM/EmailSend.aspx
In this article find the code line - smtpClient.Send(mailMessage);
After this line you can insert your code for inserting a record in a table. Table will have email details with IsRead (bool). This field will set True once you clicked on the record (grid showing un-read emails) for read in your Admin page.
You can also delete these informative records from table as per your need.
You can refer this article
http://www.c-sharpcorner.com/UploadFile/lcamlibel/emailnotifieragent12052005001819AM/emailnotifieragent.aspx