Date: Wed, 10 Nov 2010 12:03:19 +1300
Reply-To: templerr@clear.net.nz
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: templerr <templerr@CLEAR.NET.NZ>
Subject: Re: PDF attachment in email in UNIX
Content-type: text/plain; charset=iso-8859-1
Bunti
You need to add the CONTEXT_TYPE parameter to the ATTACH:
Filename email email to=&EMAILTO
from=&FROM
replyto=&FROM
cc=&CC
Subject="Internet Usage Report
between &start and &End"
Attach=("&FILENAME"
ct='application/pdf')
;
----- Original Message Follows -----
> Hi,
> I am trying to send PDF attachment in email from SAS/UNIx.
> I am able to send email but pdf is not opening the message
> i am getting is "file is not encoded popely" Below is my
> code. rsubmit ; options
>
emailsys='/wload/&wload/app/SAS/SAS_9.1/utilities/bin/sasm
> .elm.mime' ; proc options group=email ;
run ;
> %let pdf =
/wload/$wload/gpfs/home/ar3pup1/grain-1.pdf ;
> ods listing close
; ods pdf
> body="&pdf" ; proc report
data=sashelp.class nofs ;
> run ; ods pdf close ; endrsubmit
; rsubmit
> ; filename automail EMAIL
> ("urvir.palan@example.com")
> subject="Test Emailing a PDF"
> attach=("&pdf" ) ; data
_null_; file
> automail ; put "Is the PDF Readable
from Email"
> ; run; endrsubmit ; Can someone please
help me.
> Regards,
> Urvir
>
>