I have a contact form in my app that sends a email. All information shows but the format is not right. I have tried vbcrlf as well as vbnewline and the format comes out the same. Any ideas?
My vb code is:
vb Code:
sMessageBody = "REMINDER: If the end user has requested a reply e-mail, they were promised an e-mail within 48 hours." & vbCrLf & vbCrLf & _ "Contact Reason: " & cboContactReason.SelectedItem.ToString & vbCrLf & _ "Requires a reply: " & cboReplyBack.SelectedItem.ToString & vbCrLf & vbCrLf & _ "E-Mail Message: " & vbCrLf & _ txtMessage.Text.Trim & vbCrLf & vbCrLf & _ "MACHINE INFORMATION: " & vbCrLf & _ "Computer Name: " & My.Computer.Name & vbCrLf & _ "Available Physical Memory: " & My.Computer.Info.AvailablePhysicalMemory & vbCrLf & _ "Available Virtual Memory: " & My.Computer.Info.AvailableVirtualMemory & vbCrLf & _ "Total Physical Memory: " & My.Computer.Info.TotalPhysicalMemory & vbCrLf & _ "Total Virtual Memory: " & My.Computer.Info.TotalVirtualMemory & vbCrLf & _ "Operating System Full Name: " & My.Computer.Info.OSFullName & vbCrLf & _ "Operating System Platform: " & My.Computer.Info.OSPlatform & vbCrLf & _ "Operating System Version: " & My.Computer.Info.OSVersion & vbCrLf & vbCrLf & _ "APPLICATION INFORMATION: " & vbCrLf & _ "Application Name: " & My.Application.Info.ProductName & vbCrLf & _ "Common Application Data Path: " & System.Windows.Forms.Application.CommonAppDataPath & vbCrLf & _ "Executable Path: " & System.Windows.Forms.Application.ExecutablePath & vbCrLf & _ "Local User Application Data Path: " & System.Windows.Forms.Application.LocalUserAppDataPath & vbCrLf & _ "Startup Path: " & System.Windows.Forms.Application.StartupPath & vbCrLf & _ "User Application Data Path: " & System.Windows.Forms.Application.UserAppDataPath
The email comes to me like so:
The email should look like so:REMINDER: If the end user has requested a reply e-mail, they were promised an e-mail within 48 hours.
Contact Reason: Bug Report
Requires a reply: Yes
E-Mail Message:
A
MACHINE INFORMATION:
Computer Name: PADDYLAPTOP
Available Physical Memory: 849801216
Available Virtual Memory: 1877094400
Total Physical Memory: 2137186304
Total Virtual Memory: 2147352576
Operating System Full Name: Microsoft Windows 7 Professional Operating System Platform: Win32NT Operating System Version: 6.1.7600.0
APPLICATION INFORMATION:
Application Name:Support Space Call Tracker Common Application Data Path:C:\ProgramData\Support Space Call Tracker\Support Space Call Tracker\2011.0.0.26 Executable Path:C:\Users\Paddy\Desktop\Visual Basic\SupportSpace\SupportSpaceCallTracker\SupportSpaceCallTracker\bin\x86\Debug\SupportSpaceCallTra cker.EXE
Local User Application Data Path:C:\Users\Paddy\AppData\Local\Support Space Call Tracker\Support Space Call Tracker\2011.0.0.26 Startup Path:C:\Users\Paddy\Desktop\Visual Basic\SupportSpace\SupportSpaceCallTracker\SupportSpaceCallTracker\bin\x86\Debug
User Application Data Path:C:\Users\Paddy\AppData\Roaming\Support Space Call Tracker\Support Space Call Tracker\2011.0.0.26
Thanks for any input.REMINDER: If the end user has requested a reply e-mail, they were promised an e-mail within 48 hours.
Contact Reason: Bug Report
Requires a reply: Yes
E-Mail Message:
A
MACHINE INFORMATION:
Computer Name: PADDYLAPTOP
Available Physical Memory: 849801216
Available Virtual Memory: 1877094400
Total Physical Memory: 2137186304
Total Virtual Memory: 2147352576
Operating System Full Name: Microsoft Windows 7 Professional
Operating System Platform: Win32NT
Operating System Version: 6.1.7600.0
APPLICATION INFORMATION:
Application Name: Support Space Call Tracker
Common Application Data Path: C:\ProgramData\Support Space Call Tracker\Support Space Call Tracker\2011.0.0.26
Executable Path: C:\Users\Paddy\Desktop\Visual Basic\SupportSpace\SupportSpaceCallTracker\SupportSpaceCallTracker\bin\x86\Debug\SupportSpaceCallTra cker.EXE
Local User Application Data Path: C:\Users\Paddy\AppData\Local\Support Space Call Tracker\Support Space Call Tracker\2011.0.0.26
Startup Path: C:\Users\Paddy\Desktop\Visual Basic\SupportSpace\SupportSpaceCallTracker\SupportSpaceCallTracker\bin\x86\Debug
User Application Data Path: C:\Users\Paddy\AppData\Roaming\Support Space Call Tracker\Support Space Call Tracker\2011.0.0.26




Reply With Quote