giordano
giordano

Reputation: 3162

SAS Send an email via browser

I have a PC where I have only email access through webbrowser firefox or IE. This is due to security (!?) reasons. Is it possible to use the SAS programm and going via browser?

%macro sendmail(email);
FILENAME outmail EMAIL  &email
SUBJECT="Report November 2013"
ATTACH= ("&path\stats_&id..pdf");

DATA _NULL_;
FILE outmail;

put 'Dear x';
put 'Blablabla.';
put 'Cheers';
put 'giordano';
RUN;
%mend sendmail;

&path and &id are defined somewhere else. The address where I want to send through looks like https://outlook.xyz.co and it asks for my login and a password. I'm looking for something like

FILENAME outmail EMAIL  &email
WEB https://outlook.xyz.co
LOGIN giordano
PASSWORD xxxx;

I would appreciate any suggestions.
giordano

Upvotes: 0

Views: 105

Answers (1)

James Owers
James Owers

Reputation: 8345

If it is not possible within SAS and you know how to do this using another language, you can output a text file from SAS and use %sysexec to call a program (which will use the text file).

Upvotes: 1

Related Questions