LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2007, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Sun, 13 May 2007 21:58:16 -0700
Reply-To:   David L Cassell <davidlcassell@MSN.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   David L Cassell <davidlcassell@MSN.COM>
Subject:   Re: unix mail vs pc mail
In-Reply-To:   <16FD64291482A34F995D2AF14A5C932C015A736E@MAIL002.prod.ds.russell.com>
Content-Type:   text/plain; format=flowed

Mterjeson@RUSSELL.COM wrote: > >Hi All, > >Regardless if I place the attachment info in the FILENAME >or place it in the body of the email -- it arrives in the email >for Windows as an attachment when using SAS v8.2, and >for SAS v8.2 on unix(AIX) the same code appends the csv >contents to the body instead of as an attachment. > >Anybody know the tricks to actually make an attachment >in SAS v8.2 for Unix(AIX)? I thought I used to send attachments >via unix years ago, but current enviroment is not. Is there a >setting or trick anyone can think of? > > > >/* > filename mymail email "myeaddr@mydomain.com" > Subject="Test: Sample" attach="/home2/tmp/xxtest.csv"; >*/ > > filename mymail email "myeaddr@mydomain.com" > Subject="Test: Sample" ; > > data _null_; > file mymail lrecl=32767; > put '!EM_ATTACH! ' "/home2/tmp/xxtest.csv"; > put; > put "This is an test mailing."; > put; > run; > > > >Thanks in advance, >Mark

What are the options that you didn't show us?

Okay, it's AIX (ugh) and SAS 8.2 . What's the MTA that gets used? What are the default settings for the MTA if you try replicating this from the command line?

Some (repeat, *some* but not all) unix Mail Transport Agents do not pass off attachments in ways that read well when you get them in a different OS, say, Windows. This can be the fault of an intervening MUA that just has annoying misfeatures, like Solaris MailTool, or it can be settings on the MTA. The consequence that I have seen is that the attachment(s) get wedged together like one long mail message when the reader sees the incoming mail.

You may need to change the settings on the MTA, or tell it what attachment type you are using, or even lie to it about the attachment so that it employs MIME and 'attaches' correctly for the MUA at the other end.

HTH, David -- David L. Cassell mathematical statistician Design Pathways 3115 NW Norwood Pl. Corvallis OR 97330

_________________________________________________________________ PC Magazine’s 2007 editors’ choice for best Web mail—award-winning Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_pcmag_0507


Back to: Top of message | Previous page | Main SAS-L page