Use HTML in Apex Class
String htmlBody = '
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<ul type="disc">
<li>
Dear Sir<ul type="disc"><p>
It is required to send certain parts on FOC basis against the referred Sales Order.<br/><br/> You are requested to please arrange to transfer below listed material to Store Loc. () & issue and hand over to Packing Dept. However, if parts are not available in store, kindly inform the shortage to concerned person/ department for necessary action.</p>
</ul>
</li>
<li>
Dear Packing Team<ul type="disc">
<p>
Please arrange to get the material packed once issued from Store enabling us to perform further formalities.
</p>
</ul>
</li>
<li>List of parts under referred Sales Order is given under.<ul type="disc">
</ul>
</li>
</ul>
<div style="padding-left:82px">
<table border="1" style="min-width: 100%; border-collapse: collapse;">
<tr>
<th colspan="4" style="background-color:#E4F2CB">FREE OF COST SALES ORDER FOR</th>
</tr>
<tr>
<td style="background-color:#EAE4EA">Customer</td>
<td rowspan="1" colspan="3" >row1 column2</td>
</tr>
<tr>
<td style="background-color:#EAE4EA">SAP Sales Order </td>
<td >row2 column2</td>
<td style="background-color:#EAE4EA">CRM FOC No.</td>
<td>row2 column4</td>
</tr>
<tr>
<td style="background-color:#EAE4EA">SAP Service Notification</td>
<td>row3 column2</td>
<td style="background-color:#EAE4EA">CRM Work Order</td>
<td>row3 column4</td>
</tr>
<tr>
<td style="background-color:#EAE4EA">Machine Model </td>
<td>row4 column2</td>
<td style="background-color:#EAE4EA">CRM Case No. </td>
<td>row4 column4</td>
</tr>
<tr>
<td style="background-color:#EAE4EA">Machine No(s). </td>
<td rowspan="1" colspan="3" >row1 column2</td>
</tr>
</table>
<table border="1" style="min-width: 100%; border-collapse: collapse;">
<tr>
<th style="background-color:#EAE4EA">Sr No. </th>
<th style="background-color:#EAE4EA">Item Code </th>
<th style="background-color:#EAE4EA">Item Description </th>
<th style="background-color:#EAE4EA">Qty</th>
<th style="background-color:#EAE4EA">Unit</th>
<th style="background-color:#EAE4EA">FOC Reason
</th>
</tr>
<tr>
<td>Remarks if any: </td>
<td rowspan="1" colspan="5" >row1 column2</td>
</tr>
<tr>
<td rowspan="1" colspan="6" style="background-color:#F9EBB5;"><b><center>PACKING DETAIL (To be filled by Packing Department)</center></b></td>
</tr>
</table>
<table border="1" style="min-width: 100%; border-collapse: collapse;">
<tr>
<td>CASE NO.</td>
<td>Head2</td>
<td>NET WEIGHT (KGS)</td>
<td>Head4</td>
</tr>
<tr>
<td>PACKING DATE</td>
<td>row1 column2</td>
<td>GROSS WEIGHT (KGS) </td>
<td>row1 column4</td>
</tr>
<tr>
<td>PACKING BOX (W/C*) </td>
<td>row2 column2</td>
<td>CASE SIZE (CMxCMxCM)</td>
<td>row2 column4</td>
</tr>
</table>
<p>
Regards,<br/><br/>Copy to: <br/>MDM IT - Please run the MRP against above referred Sales Order.
</p>
</div>
</body>
</html>';
Comments
Post a Comment