Date: Wed, 20 Oct 2010 11:39:30 -0400
Reply-To: Richard DeVenezia <rdevenezia@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Richard DeVenezia <rdevenezia@GMAIL.COM>
Subject: Re: Any SAS codes to receive email?
Content-Type: text/plain; charset=ISO-8859-1
On Wed, Oct 20, 2010 at 11:13 AM, ST <firstname.lastname@example.org> wrote:
> hi there,
> It is easy to send email via SAS. However, I am wondering if SAS can receive
> email and save the attachments automatically from outlook. I get lots of
> email from clients with attachments very day. I am looking for a way to get
> the attachments to a specific directory for processing.
> I know there are some outlook add-ins available and I tried two of them. The
> problem is that the attachments are in the same name and I have to rename
> them according to the message title. Neither can do this.
You can develop an app in C#, VB, C++, etc app that uses Outlook Object Model
and then invoke the app using the X statement.
An alternative, and perhaps less desirable, is to write an Outlook
macro in VB to process messages and attachments. The macro can be
invoked from SAS using the X or similar statement. For example
%sysexec Outlook.exe /autostart MyMacro
You will likely need to adjust security settings or policies to accomplish this.