When you use the FILENAME EMAIL Access Method with the EMAILAUTHPROTOCOL=LOGIN option, SAS follows a specific order to determine which credentials to use when authenticating to the SMTP server.
Sending E-Mail through SMTP documents the order of what credentials are used.
Default Credential Order — SAS 9.4M9 (TS1M9) and Earlier
- ID= (and PW=) in the EMAILHOST= system option
If specified, SAS uses this user ID for SMTP authentication.
- FROM= in the FILENAME statement
If you do not provide ID=, SAS uses the user ID from the FROM= option.
- EMAILID= system option (and EMAILPW=)
If FROM= does not specify a user ID, SAS uses EMAILID=.
- Operating system user ID
If you do not provide any of the above, SAS uses the OS account running the SAS session.
Credential Order After Applying the Hot Fix:
- ID= (and PW=) in the EMAILHOST= system option
If specified, SAS uses this user ID for SMTP authentication.
- EMAILID= system option (and EMAILPW=)
If FROM= does not specify a user ID, SAS uses EMAILID=.
- FROM= in the FILENAME statement
If you do not provide ID=, SAS uses the user ID from the FROM= option.
- Operating system user ID
If you do not provide any of the above, SAS uses the OS account running the SAS session.
Related Knowledge Articles
- SAS KB0040568, ""How to set up your SAS® installation to communicate with a Secure SMTP Server"