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.
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.
Anil KumarPosted Jul 28, 2011, 2:01 AM
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
Benjamin KemnerPosted Jul 28, 2011, 1:43 AM
sagar BhosalePosted Jul 27, 2011, 11:59 PM
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
Sam HobbsPosted Jul 27, 2011, 4:18 PM
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 BhosalePosted Jul 27, 2011, 3:01 AM
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
Anil KumarPosted Jul 27, 2011, 2:24 AM
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.
Suthish NairPosted Jul 27, 2011, 1:59 AM
Sam HobbsPosted Jul 27, 2011, 12:30 AM
sagar BhosalePosted Jul 26, 2011, 11:56 PM
Benjamin KemnerPosted Jul 26, 2011, 6:32 AM