Link to home
Create AccountLog in
Avatar of Sirdots
Sirdots

asked on

string builder object - displayed on one line when sent via email

I have a method that returns a string builder object and sends email. Once I receive the email, it is all in one line. I expect  it to be on new lines. Do you know what am doing wrong here? Is outlook reading it differently?


StringBuilder sb = new StringBuilder();
                sb.Append("<strong>Employee Details:</strong> : ");
                sb.Append("</br>");
                sb.Append("<strong>Employee Generated Number:</strong> : " + generatedId);
                sb.Append("</br>");
                sb.Append("<strong>Employee Name:</strong> : " + objEmpTerm.LastName + "," + objEmpTerm.FirstName);
                sb.Append("</br>");
                sb.Append("<strong>Employee ID:</strong> : " + objEmpTerm.EmployeeID);
                sb.Append("</br>");
                sb.Append("<strong>Job Title:</strong> : " + objEmpTerm.JobTitle);
                sb.Append("</br>");
                sb.Append("<strong>Termination Effective Date:</strong> : " + objEmpTerm.Enddate);
                sb.Append("</br>");
                sb.Append("<strong>Manager:</strong> : " + objEmpTerm.Manager);
                sb.Append("</br>");
                sb.Append("<strong>Branch:</strong> : " + objEmpTerm.Branch);
                sb.Append("</br>");
                sb.Append("<strong>Submitted By:</strong> : " + objEmpTerm.SubmittedBy);
                sb.Append("</br>");
                sb.Append("<strong>Technical Equipment </strong> : ");
                sb.Append("</br>");
                        return sb
emails.PNG
SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account