DATA Step, Macro, Functions and more

Using pc sas to send email

Reply
N/A
Posts: 0

Using pc sas to send email

Hi ,
I installed in my computer SAS 9.1 (A version of students).
Im new with sas....

now Im trying to send email with SAS.
As i read i I passed through :
C:\Program Files\SAS\SAS 9.1\nls\en to sasV9 and insert the folowing statments:

-EMAILAUTHPROTOCOL=LOGIN
-EMAILHOST smtp.mail.yahoo.com
-EMAILID=yael.barak@yahoo.com
-EMAILPW= my password
-EMAILPORT 25
-EMAILSYS SMTP

I saved the changes and open sas code and wrote the folowing code:

filename mail email "yael.barak@yahoo.com";
data _null_;
file mail;
put "test";
run;

I get this error:
ERROR: Unable to connect to SMTP server.
ERROR: connect call failed, system error is '10013 - WSAEACCES'.

What could be the reason?
Respected Advisor
Posts: 4,173

Re: Using pc sas to send email

Posted in reply to deleted_user
Are your connection infos correct (i.e. port number)?

http://help.yahoo.com/l/us/yahoo/mail/original/mailplus/pop/pop-08.html
N/A
Posts: 0

Re: Using pc sas to send email

Posted in reply to deleted_user
Hi Patrick Thanks for your reply .
Yes the connection infos correct , but im not using outlook express.

Do i have to use it ?

Merry Christmas !
N/A
Posts: 0

Re: Using pc sas to send email

Posted in reply to deleted_user
You might want to try using Outlook express to confirm that the parameters are all correct. If it doesn't work, then there is something wrong with the parms. If it does work then the problem is on the sas side.

I know that att.yahoo.com's servers don't use that port number.

Tom Miller
Super Contributor
Super Contributor
Posts: 3,174

Re: Using pc sas to send email

Posted in reply to deleted_user
You mentioned that you do not use Outlook Express. Do you currently use an SMTP mail client on your computer now (with success)? Or do you use a web-based EMAIL application? Possibly you are not authorized to access using SMTP?

Scott Barry
SBBWorks, Inc.
Ask a Question
Discussion stats
  • 4 replies
  • 306 views
  • 0 likes
  • 3 in conversation