Click here to Skip to main content
15,916,463 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: email code for contact us form Pin
sanaziuse12-May-07 2:57
sanaziuse12-May-07 2:57 
GeneralRe: email code for contact us form Pin
enjoycrack12-May-07 4:11
enjoycrack12-May-07 4:11 
QuestionDraw lines on the web page Pin
Nirosh11-May-07 10:48
professionalNirosh11-May-07 10:48 
AnswerRe: Draw lines on the web page Pin
Nirosh11-May-07 12:31
professionalNirosh11-May-07 12:31 
QuestionCreating login page and hiding existing login page of an extranet application. Pin
santosh2611-May-07 10:12
santosh2611-May-07 10:12 
Questionweb farm problem Pin
gus_br11-May-07 8:28
gus_br11-May-07 8:28 
AnswerRe: web farm problem Pin
doWhileSomething13-May-07 9:20
doWhileSomething13-May-07 9:20 
QuestionHow to format textbox data into an email message [modified] Pin
archangel71711-May-07 6:35
archangel71711-May-07 6:35 
Hey all,

I have searched all over the internet for this, but haven't found exactly what I am looking for. I am not an expert VB.Net programmer, so bear with me here. I have about 12 text and drop down boxes that will reside on a 'Customer Account Creation Request' form page. An HR rep will fill out the form with the appropriate fields and then click submit. It will then just email IT the contents of the form. My code works and all is well. My only problem is to actually format the email so it isn't just one long line of information. I am half way there, but I can't figure out how to insert the appropriate breaks and formatting. This is probably so simple, but I've never done it before in this manner so I need help! A sample of my code is below:

<code>
Dim Email As New System.Net.Mail.MailMessage( _
"email@email.com", "email@email.com")
Email.IsBodyHtml = True
Email.Subject = "New Account Creation Request"
Email.Body = "A new account was requested by " & txtRequesterFirst.Text & " " & txtRequesterLast.Text & " on " & DateTime.Now.ToString() & ". Employee Name - " & txtFirst.Text & " " & txtMiddle.Text & " " & txtLast.Text
</code>

The email.body line is just on one line, so thats why it might display weird in this post. Could someone point me in the right direction? I basically want each text box to be on its own line in the generated email. For example, the Employee Name part should be on the next line of the email and not alongside the first part of the message.

Thanks!!


-- modified at 12:56 Friday 11th May, 2007
AnswerRe: How to format textbox data into an email message Pin
Fred_Smith11-May-07 7:22
Fred_Smith11-May-07 7:22 
GeneralRe: How to format textbox data into an email message Pin
archangel71711-May-07 8:18
archangel71711-May-07 8:18 
GeneralRe: How to format textbox data into an email message Pin
archangel71711-May-07 11:30
archangel71711-May-07 11:30 
GeneralRe: How to format textbox data into an email message Pin
Ibuprofen17-May-07 2:45
Ibuprofen17-May-07 2:45 
QuestionGet User/Domain Information In ASP.NET Applications Pin
Xiangyang Liu 刘向阳11-May-07 5:45
Xiangyang Liu 刘向阳11-May-07 5:45 
QuestionIs it possible to have an email attachment without saving it on server Pin
NetBot11-May-07 3:51
NetBot11-May-07 3:51 
AnswerRe: Is it possible to have an email attachment without saving it on server Pin
Fred_Smith11-May-07 4:25
Fred_Smith11-May-07 4:25 
GeneralRe: Is it possible to have an email attachment without saving it on server Pin
NetBot11-May-07 16:36
NetBot11-May-07 16:36 
QuestionUserControl and data from Default.aspx ? Pin
steffw11-May-07 2:40
steffw11-May-07 2:40 
QuestionRe: UserControl and data from Default.aspx ? Pin
Sandeep Akhare11-May-07 2:56
Sandeep Akhare11-May-07 2:56 
AnswerRe: UserControl and data from Default.aspx ? Pin
steffw11-May-07 3:01
steffw11-May-07 3:01 
GeneralRe: UserControl and data from Default.aspx ? Pin
Sandeep Akhare11-May-07 3:30
Sandeep Akhare11-May-07 3:30 
AnswerRe: UserControl and data from Default.aspx ? Pin
GgAben11-May-07 3:20
GgAben11-May-07 3:20 
GeneralRe: UserControl and data from Default.aspx ? Pin
steffw12-May-07 23:58
steffw12-May-07 23:58 
GeneralRe: UserControl and data from Default.aspx ? Pin
GgAben13-May-07 18:52
GgAben13-May-07 18:52 
GeneralRe: UserControl and data from Default.aspx ? Pin
steffw13-May-07 20:33
steffw13-May-07 20:33 
QuestionJava Control Validation on ASP.NET Pin
kinsella_john11-May-07 2:22
kinsella_john11-May-07 2:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.