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. 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 1046 views
  • 2 likes
  • 4 in conversation