Hello Sir,
I'm using the below code to send emails after insertion of data .I want to forward the same output in structured HTML format.
obj_email.SendMail("myid@gmail.com", "Company name", "Hi " + Admin+ ",<br/><br/> " + "Alignment Details <br/>" + "<b>Client Name: </b>" + client_name + "<br/> " + "<b>Client Contact Number: </b>" + txt_contact.Text + "<br/> <b>Start Time :</b>"
+ txtTime.Text + " " + " <b>End Time:</b>"
+ TextBox1.Text + "<br/> <b> " + str1 + "</b> "
+ TextBox4.Text + " " + TextBox5.Text + " "
+ TextBox6.Text + "<br/> <b> " + str2 + "</b> "
+ TextBox2.Text + " " + TextBox3.Text + " "
+ TextBox7.Text + "<br/> <b>" + str3 + "</b> "
+ TextBox8.Text + " " + TextBox9.Text + " "
+ TextBox10.Text + "<br/><b> " + str4 + "</b> "
+ TextBox11.Text + " " + TextBox12.Text + " "
<br/> Regards, <br/>Web Master.");
The output for the above code is
Hi Admin,
Alignment Details Client Name: Rahmath Client Contact Number: 4565876987 Start Time :10:00 AM End Time:1:00 PM Monday 26/11/2018 19/11/2018 and so on
I want the outp to be represented as below in Email
<table>
<tr>
<th>Staff Name</th>
<th>Client Name</th>
<th>Monday</th>
<th>From Date</th>
<th>To Date</th>
<th>From Time</th>
<th>To Time</th>
<th>Total hours</th>
</tr>
<tr><td>Abc</td>
<td>Xyz</td>
<td>Monday</td>
<td>10/30/2018</td>
<td>11/6/2018</td>
<td>2:30 PM</td>
<td>6:30 PM</td>
<td>04:00:00</td>
</tr>
</table>
How to format the message body to HTML
Thanks