john8098
asked on
Dynamic generate plain text email with new line
Hi, i would like to generate plain text email dynamically from a string. Because the website email seen not to render the html code.
i try this but seen not success, expert please advice me.TQ
the result go to:
Reservation request to RJ Hotel Kulai - 05/04/2009 18:33:13vbcr -------------------------- ---------- --vbcrArri ve: 15-04-2009vbcrDepart: 17-04-2009vbcrGuest: 1vbcrName: testvbcrGender: MalevbcrIc/Passporttestvbc rPhone: testvbcrFax: testvbcrEmail: leppon888@hotmail.comvbcrC ountry: testvbcrCity: testvbcrAddress: testvbcr -------------------------- ---------- --vbcr
( there is no line break... ) wha's wrong.
i try this but seen not success, expert please advice me.TQ
the result go to:
Reservation request to RJ Hotel Kulai - 05/04/2009 18:33:13vbcr --------------------------
( there is no line break... ) wha's wrong.
Dim strCustomer As String = "Reservation request to " & ddlDepartments.SelectedItem.Text & " - " & DateTime.Now & "vbcr" & " --------------------------------------" & "vbcr" & _
"Arrive: " & txtArrive.Text & "vbcr" & _
"Depart: " & txtDepart.Text & "vbcr" & _
"Guest: " & ddlGuest.SelectedValue & "vbcr" & _
"Name: " & txtName.Text & "vbcr" & _
"Gender: " & ddlGender.SelectedValue & "vbcr" & _
"Ic/Passport" & txtIc.Text & "vbcr" & _
"Phone: " & txtPhone.Text & "vbcr" & _
"Fax: " & txtFax.Text & "vbcr" & _
"Email: " & txtEmail.Text & "vbcr" & _
"Country: " & txtCountry.Text & "vbcr" & _
"City: " & txtCity.Text & "vbcr" & _
"Address: " & txtAddress.Text & "vbcr" & " --------------------------------------" & "vbcr"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try Constants.vbCr or use Enviroment.NewLine. I code in C# for asp.net and use Enviroment.NewLine.
ASKER
Good