I need to send an email with a html table → this works
I also need to do some css styling → this does not work, as < style> tag is after < body> tag
How can I send the HTML email inserting the < style> tag in the < head>? Are there other options?
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
</head>
<body>
Dear all, Please find .....
<style>table { font-family: Times, serif; border: 1px solid #FFFFFF; =
width: 350px; height: 200px; text-align: center; border-collaps=
e: collapse; } table td, table th { border: 1px solid #FFFFFF; padd=
ing: 3px 2px; } table tbody td { font-size: 13px; } table tr:nth-chi=
ld(even) { background: #D0E4F5; } table thead { background: #0B6FA4=
; border-bottom: 5px solid #FFFFFF; } table thead th { font-size: 1=
7px; font-weight: bold; color: #FFFFFF; text-align: center; bor=
der-left: 2px solid #FFFFFF; } table thead th:first-child { border-lef=
t: none; } table tfoot { font-size: 14px; font-weight: bold; col=
or: #333333; background: #D0E4F5; border-top: 3px solid #444444; } =
table tfoot td { font-size: 14px; }</style>
<table>
<tbody>
<tr>
<th>Assignment</th>
<th>Incident ID</th>
<th>Service</th>
<th>Title</th>
<th>Priority</th>
<th>Assignee Name</th>
[...]