Hi, thanks for responding and for the solution.
I did the following:
/* I used PROC TEMPLATE to remove the original CSS style */
PROC TEMPLATE; DEFINE TAGSET TAGSET.CUSTOM; PARENT=TAGSETS.HTML4; EMBEDDED_STYLESHEET=OFF; END;
/* Output table for the email body in an HTML file */
ODS TAGSET.CUSTOM FILE=REPORT; ODS NOPTITLE NOPROCTITLE;
PROC REPORT DATA=NAMES(DROP=EMAIL) NOWD HEADLINE HEADSKIP RUN; ODS TAGSET.CUSTOM CLOSE;
/* I created a new HTLM file, creating my own CSS style and HTML text using IF _INFILE_ =: '<body' and IF _INFILE_ =: '<head */
DATA _NULL_; INFILE REPORT; FILE MSG; INPUT; PUT _INFILE_; IF _INFILE_ =: '<head' THEN DO; PUT '<style type="text/css"> *, *:after, *::before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
body { background:#fff; color:#000; font-family:Verdana,sans-serif; margin:0; padding:0; }
header { border-top: 5px solid #00ff17; }
h1, h2, h3, p{ font-weight: normal; margin:5px 10px; }
h1{ font-family: Verdana,sans-serif; font-size: 1.5em; }
h1.topo { padding: 20px 10px; text-transform: uppercase; }
p { font-size:1em; }
table { margin:0 auto; width:80%; }
thead{ color:#17d615; }
table, th, thead{ border: none; background:#282828; }
td { border-bottom: 1px solid #282828; font-size:0.8em; background:#f6f6f6; }
td.r.data { text-align: center; }
ul { list-style-type: circle; font-size:1em; }
</style>'; END;
IF _INFILE_ =: '<body' THEN DO; PUT ' <header> <h1 class="topo"> LOREM INPSUM DOLOR </h1> </header> <p style="color:#00d318;">Lorem ipsum dolor sit amet:</p> <ul> <li>Consectetur adipiscing elit, sed do eiusmod tempor incididunt;</li> <li>Excepteur sint occaecat cupidatat non proident.</li> </ul>
<p>Sunt in culpa qui officia deserunt mollit anim id est laborum:</p> </br> '; END; RUN;
/* Finally, I put the html file as the body of the email */
DATA _NULL_; INFILE MSG; FILE CODE; INPUT; PUT _INFILE_; RUN;
... View more