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 EMAIL server.

If your site uses “EMAILID=” and “EMAILPW=” with explicit intent to authenticate to a secure SMTP EMAIL server with those credentials, using the “IGNOREFROM” SAS registry key in the SAS registry changes the credential order to accomplish this process.

See Sending E-Mail through SMTP for information about 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 Setting the IGNOREFROM SAS Registry Key

  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. operating system user ID
    If you do not provide any of the above, SAS uses the OS account running the SAS session.   

Additional Resources