Credential Order for FILENAME EMAIL with the EMAILAUTHPROTOCOL=LOGIN option


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

  1. ID= (and PW=) in the EMAILHOST= system option
    If specified, SAS uses this user ID for SMTP authentication.

  2. FROM= in the FILENAME statement
    If you do not provide ID=, SAS uses the user ID from the FROM= option.

  3. EMAILID= system option (and EMAILPW=)
    If FROM= does not specify a user ID, SAS uses EMAILID=.

  4. 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:

  1. ID= (and PW=) in the EMAILHOST= system option
    If specified, SAS uses this user ID for SMTP authentication.

  2. EMAILID= system option (and EMAILPW=)
    If FROM= does not specify a user ID, SAS uses EMAILID=.

  3. FROM= in the FILENAME statement
    If you do not provide ID=, SAS uses the user ID from the FROM= option.

  4. 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