09-29-2015 04:00 PM
I am using this fantastic blog by Chris Hemedinger to send emails through Gmail using SMTP on a Windows machine:
My code is:
filename myemail email to="firstname.lastname@example.org" subject="Test SAS Message";
put "I can send emails using SAS!";
filename myemail clear;
The error that I am receiving is:
Email: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1scc=1&plt=......> Please log in via your web browser and then try again. Learn more at http://support.google.com/mail/answer/78754 r40sm11865438ioe.20 - gsmtp
I have read almost all of the SUGI literature out there and can't find anything regarding this issue. The issue seems to be with authentication through Gmail. I realize that this problem may be beyond the scope of the SAS platform but any help would be appreciated.
09-29-2015 04:37 PM
Did you check you email program for the parameters it currently uses? You have something besides "plain" such as 2.0 or 3.0 needed for ssl, and possibly using POP instead of SMTP. No guarantees but that may give you some hints.
In my case though, I generally default to "Google doesn't like me" and go elsewhere...
09-29-2015 05:26 PM
The only valid values for "auth=" are login and plain:
Both do not work in this case. I have also gone into my setting in Gmail and allowed external clients to use the SMTP interface. Is there a Web service you would recommend in place of google? Sadly, I do not have outlook on my networked machine...
09-29-2015 06:17 PM
Does the machine you are running SAS on have any email other than gmail? You might check with your IT to see if they have any SMTP server.
Look at the SAS options that start with EMAIL for some additional informaton that may need to be set.
09-30-2015 02:49 PM
The machine that we run SAS on is a bare bones server dedicated for SAS use so there isn't any email software on it. I'm sure that we can get a licence to outlook if necessary but I was just trying to fix the problem without having to pay for it. My company might have a dedicated SMTP server also, I'm not sure it is worth the headache of dealing with though. This is one of those "nice to haves" instead of "need to have".
Thank you for your help ballardw!