Architecting, installing and maintaining your SAS environment

Error in Email Output

Reply
New Contributor
Posts: 3

Error in Email Output

Hi,

I am working on a Report which inloves Email the Report.

Here i am able send the only Text Email using the SAS Like

Filename Name Email

          Subject = "Test"

          From = "Email"

          To = "Email"

          CT = "Text/Html";

Data _Null_;

     File Name ;

     Put "Emailing is success full";

Run;

But When i am taking the Result in Output of Email Body i am only getting the Source code in it.

Filename Name Email

          Subject = "Test"

          From = "Email"

          To = "Email"

          CT = "Text/Html";

ODS Html rs=none;

Proc Print Data = Sashelp.calss;

run;

ods html close;

Contributor
Posts: 35

Re: Error in Email Output

Try this.

filename outbox email "fromEmail"
to = ("toEmail")
type='text/html'
subject="Test";

ods MSOffice2K body=outbox rs=none style=sasweb;
proc print data=Sashelp.calss;

run;
ods MSOffice2K close;

New Contributor
Posts: 3

Re: Error in Email Output

Thank you for your Help. But i am still getting the Source Code in It.

Ask a Question
Discussion stats
  • 2 replies
  • 509 views
  • 0 likes
  • 2 in conversation