BookmarkSubscribeRSS Feed
BrahmanandaRao
Lapis Lazuli | Level 10
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;

Anandkvn_0-1615884862403.png

 

4 REPLIES 4
yabwon
Amethyst | Level 16

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

 

_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



BrahmanandaRao
Lapis Lazuli | Level 10
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 

 

Anandkvn_0-1615888559627.png

 

Sajid01
Meteorite | Level 14

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. 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

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!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 916 views
  • 2 likes
  • 4 in conversation