i need your help.
i designed a form for add user and after submit the all required information that form mail some data to the user account which use give in email section.
like First/last Name. Security Question and Security Answer.
my code doing it but the problem is that i cannot set the body of this mail. all details mail in single line but i want it going in proper manner. like this....
First Name
Last Name
Security Question
Security Answer
or
|
FirstName |
Abcd |
|
Last Name |
XYZ |
|
Security Question |
Question |
|
Security Answer |
Answer |
can anyone tell me how to do this
i attached my page along with this post
i used mater page in my project so please set this form in normal aspx page
Thanks Alot
Rashid KhanPosted Jun 5, 2010, 3:24 PM
but with some specific. fields only,. nd i want it in asp.cs page. not html side.
check the papes which i attached. it can say much easy what i want,
please send me the code or tell me the suggestion,
thanks
Abhimanyu K VatsaPosted Jun 3, 2010, 7:06 AM
As you want to send the e-mail when any account are being created, right?
if you want to send the table form then you have to learn about html based emailing. but you only want to send the arranged data then you have to create notepad file and have to use read/write concept to do it. The data of notepad file will be as follows:
*********************************************
Here is your new username and password:
Your Username: <% UserName %>
Your Password: <% Password %>
Your Security Question: <% SecurityQuestion %>
Your Security Answer: <% SecurityAnswer %>
**********************************************
For more details how it works and all the configuration, you have to learn Login in ASP.Net (like CreateUser, ForgetPassword, ChangePassword etc.).
I hope this post will help you, please accept my answer if yes.
Good Luck
Rashid KhanPosted Jun 3, 2010, 7:06 AM
please find the attachment. with my original post.
this line is there.
Thanks
LiyaPosted Jun 3, 2010, 6:59 AM
message.IsBodyHtml = true;