FILENAME output EMAIL
SUBJECT= "Sales summary report 1"
FROM= "anandsasjobs@gmail.com"
TO= "anandsasjobs@gmail.com";
ODS HTML BODY=output STYLE=sasweb;
TITLE JUSTIFY=left
"Total Sales by Country and Product type as of %sysfunc(date(),yymmdd10.)";
PROC REPORT DATA=sashelp.class NOWD ;
COLUMNS NAME SEX AGE;
DEFINE NAME /DISPLAY;
DEFINE SEX /DISPLAY;
DEFINE AGE/DISPLAY ;
RUN;
ODS HTML CLOSE;
Hi,
1) try to add:
CONTENT_TYPE='text/html'
to the filename definition.
2) check if you google account has enabled "acces by less secure applications"
All the best
Bart
filename output email
subject= "sales summary report 1"
from= "anandsasjobs@gmail.com"
to= "anandsasjobs@gmail.com"
content_type= "text/html" ;
ods html body=output style=sasweb;
title justify=left
"total sales by country and product type as of %sysfunc(date(),yymmdd10.)";
proc report data=sashelp.class nowd ;
columns name sex age;
define name /display;
define sex /display;
define age/display ;
run;
ods html close;
same error
Check with your SAS administrator which originating email addresses are allowed by the mail agent configured in SAS. If in doubt, omit the FROM option.
Please see the sasnotes https://support.sas.com/kb/19/767.html and https://support.sas.com/kb/41/961.html .
Check if from address can be a gmail address from your email / system admin.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.