03-29-2016 11:12 AM
Hi i'm new and trying to just solve this problem. Not familiar with SAS at all; I'm a sysadmin trying to just get this thing out the door to my users.
Trying to configure SMTP on a new SAS installation. Version 9.4. When I go to Tools > Options > System > Communications > E-mail > and try to specify "Emailhost", it's weird. I can select only from a drop-down that says "PW", PWD", and "PASSWORD". Um, I need to specify the smtp mail server!
Is there a config file somewhere I can edit to put this info in? Am I doing something wrong?
03-29-2016 11:42 AM
I'm sorry - I am not familiar with the plethora of SAS products. It's literally just "SAS". The title bar even says just "SAS".
I've attached a screen shot, if that helps!
I appreciate your efforts to help me with this issue!
03-29-2016 11:48 AM
No problem. I'm not as familiar with Windows installations, but typically you can set the options in the config file (usually <sashome>\SASFoundation\9.4\sasv9_local.cfg in or <sashome>\SASFoundation\9.4\sasv9.cfg). Try this note: http://support.sas.com/kb/53/215.html
Once set in the config file, it should be picked up with each new SAS session.
03-29-2016 12:35 PM
THANK YOU! That is the type of config file I was looking for. I am ALMOST there!
I was able to put my smtp server address in that file, and have it show up properly in the system config now.
However, now, the "FROM" field is also being problematic. My organization does not require SMTP authentication; but it DOES require that the sender be a valid email address. The good news is that "email@example.com" is a valid address, so, if I can just figure out the field to specify in the .cfg file, I think this will work.
03-29-2016 11:53 AM - edited 03-29-2016 11:59 AM
They are just synonyms for the same thing. I agree it's strange to provide them all in the UI, but it does not matter which you choose. I've personally never used it and prefer to modify the configuration files directly as @Timmy2383 pointed towards.
You can try entering something like ("smtp.server.com" id=friedegg pw=password auth=login) into the value box of the UI
Under options -> PWD=password
specifies an email logon password.
|Alias||PW= and PASSWORD=|
|Interaction||The value of the PWD= option takes precedence over the value of the EMAILPW= system option.|
03-29-2016 12:36 PM
Thanks, FriedEgg; my problem though is specifying the SMTP server address. Not the PWD field. Those are the options that are showing up when I try to specify the smtp server field.
in addition to that bug, I cannot specify the "from" field either: The options are "0" or "1". I need to put a "noreply" address in there...
03-29-2016 12:51 PM
There may be a way to set a global value for the FROM address, but I've never seen/used it. I've always set the SMTP server info in the config file and then let the individual SAS programs/code that I run define the FROM, TO, CC, SUBJECT, ATTACHMENT, etc. because it can always vary depending on what the code is doing.
FILENAME MYMAIL EMAIL TO="Dave@MyCompany.com" FROM="HAL 9000 <Me@MyCompany.com>" CC="Stanley.Kubrick@MyCompany.com" SUBJECT="I can't do that, Dave "; DATA _NULL_; FILE MYMAIL; PUT "Daisy....daiiisssyy...."; RUN;
03-29-2016 12:59 PM