Link to home
Start Free TrialLog in
Avatar of john8098
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 --------------------------------------vbcrArrive: 15-04-2009vbcrDepart: 17-04-2009vbcrGuest: 1vbcrName: testvbcrGender: MalevbcrIc/PassporttestvbcrPhone: testvbcrFax: testvbcrEmail: leppon888@hotmail.comvbcrCountry: testvbcrCity: testvbcrAddress: testvbcr --------------------------------------vbcr

( 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"

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of asmyatt
asmyatt

Try Constants.vbCr or use Enviroment.NewLine. I code in C# for asp.net and use Enviroment.NewLine.
Avatar of john8098

ASKER

Good