What version of SAS are you running, and what operating system is SAS running on?
I could not reproduce the problem using this code:
options emailsys=smtp
emailhost='xxx';
%let WORKDIR=%sysfunc(pathname(work));
ods _all_ close;
ods graphics on / width=10 in height=3.5in;
ods graphics / reset=index outputfmt=png imagename='graf1';
filename sendmail email to='to-address-here' from='from-address-here'
attach = ("&WORKDIR\graf1.png" inlined='graf1')
type='text/html' subject='Emailing graphics output';
ods listing gpath="&WORKDIR";
title;
footnote;
proc sgplot data=sashelp.class noborder; hbar age; run; quit;
ods listing close;
ods html3 file=sendmail style=sasweb;
proc report data=sashelp.class headline headskip missing center
style(report)=[cellspacing=2
borderwidth=2];
where (sex eq 'F');
run; quit;
footnote '<img src=cid:graf1>';
proc report data=sashelp.class headline headskip missing center
style(report)=[cellspacing=2 borderwidth=2]
style(header) = [font_weight = light
font_face = 'Calibri'
font_size = 9pt
just = center
cellheight=.65in
backgroundcolor=lightgray];
where (sex eq 'M');
run; quit;
ods html3 close;
ods listing;
filename sendmail clear;
The data in character columns Name and Sex are left-aligned, and the data in the numeric columns Age, Height, and Weight are right-aligned.
Vince DelGobbo
SAS R&D