vlambda博客
学习文章列表

sas-自动发送邮件带html

回复留言
/*sas-发邮件程序-正文中写入html*/
/*设置好邮箱的参数,注意,必须设置好自己邮箱的smtp功能, smtp如果设置了独立的密码,下方输入的是独立密码*/OPTIONS Emailauthprotocol=loginEmailsys=smtp Emailport=25Emailhost="smtp.163.com"Emailid="[email protected]"Emailpw="123abc";
Filename mymail email "[email protected]"subject="数据报表" type="TEXT/HTML"encoding=gb2312;
ods html body=mymail style=sasweb;options nocenter;
Data _null_; file mymail to=( "[email protected]" );run;
title '测试数据集1';proc print data=sashelp.fish(obs=5);run;
ods graphics on;proc univariate data=sashelp.fish; where species="Bream"; title "测试数据集2"; var height;run;
ods  _all_ close;