Date: Fri, 22 Dec 2006 12:17:32 -0500
Reply-To: "Lamias, Mark (CDC/CCID/OD) (CTR)" <bnz6@CDC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Lamias, Mark (CDC/CCID/OD) (CTR)" <bnz6@CDC.GOV>
Subject: Re: Using SAS to email through a macro
Content-Type: text/plain; charset="us-ascii"
You can get rid of the warning message by folllowing these steps
outlined by SAS:
http://support.sas.com/techsup/unotes/SN/005/005335.html
I hope this is helpful.
Mark J. Lamias
SAIC Statistical Consultant
Office of Informatics
National Center for Preparedness, Detection, and Control of Infectious
Diseases
Coordinating Center for Infectious Diseases
US Centers for Disease Control and Prevention
w: (404) 639-6707
m: (404) 543-1394
f: (404) 639-1391
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Gerhard Hellriegel
Sent: Friday, December 22, 2006 11:26 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: Using SAS to email through a macro
Only a idea: try to clear the filename after sending the e-mail with
filename outbox clear;
Something changed?
Are you sure, that the warning comes from OUTLOOK? It might be your
Internet Security software or anti-virus-software, which tracks that to
avoid, that a trojan horse sends e-mails with your banking data to
people who try to get them! That task is a very important one! A good
security tool should control the mail-traffic and should know, if
something "unknown" besides your e-mail client tries to send a e-mail.
You should examine, if there is any possibility to tell that tool, that
it is not only OUTLOOK which sends e-mails. That should be possible. You
could tell us, what you are using in that content, so someone might have
knowledge about the product and could help.
On Fri, 22 Dec 2006 11:07:12 -0500, Clark, Mike (LRC)
<Mike.Clark@LRC.KY.GOV> wrote:
>I'm trying to use SAS to send emails to a list of people. Each person
>would receive a unique number. I've written the following macro, which
>works but has two problems. The first is that it sends two emails to
>each person on the list. In the sample code, I've listed two of my
>email addresses. The LRC address should receive one email with 4 as the
>unique number. The windstream address should also receive one email but
>with the unique number of 5. Instead, both receive two emails. For
>example, the LRC address receives one with the number being 4 and a
>second with the number being 5. Any thoughts on why this occurs?
>
>The second problem is that Outlook provides a warning for each email
>sent. The warning is to alert the user that another program is
>attempting to send an email. Is there any way to turn this off?
>
>Just in case there is a concern, this will not being used to send spam.
>
>
>%macro lawloans(address,numb);
>filename outbox email &address;
>data _null_;
> file outbox
> subject="Law Loans";
> put 'Test';
> put 'The number is ' &numb;
>%mend;
>%lawloans("Clark, Mike (LRC)","4");
>%lawloans("clarkmwjc@windstream.net","5");
>
>run;
|