SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 53105: A SAS® program to send e-mail fails and returns the error "501 5.1.7 Invalid address" when the SMTP server does not support aliases

DetailsHotfixAboutRate It

With SAS® 9.3, the following message occurs in your SAS log when you use aliases for the value of SMTP MAIL FROM:email address and your SMTP server does not support aliases.

501 5.1.7 Invalid address

Click the Hot Fix tab in this note to access the hot fix for this issue.

In order to allow the aliases in the FROM:email address to work, you must apply the hot fix and also create an entry in the SAS registry. Follow the instructions below:

  1. Execute your SAS CLIST on the mainframe. In the Program Editor, type regedit at the command prompt and press Enter, as shown:
  2.    Program Editor
       Command ===> regedit
       00001
       00002

    The Registry Editor window is displayed.

  3. On the left side of the screen, in the box labeled SAS Registry, place your cursor over the two boxes next to CORE and press Enter.
  4. Click Edit at the top of the screen and select New ► Key.
  5. In the new window, under Name:, type EMAIL, click OK, and press Enter.
  6. Under Contents of 'EMAIL' on the right side of the screen, right-click the Name header and select New Unsigned Integer.
  7. Click New Unsigned Integer Value. Enter IGNOREFROM under Value Name: and enter 1 under Value Data:.
  8. Click OK.

Your screen should now look like the following.

Registry Editor
 File Edit View Tools Solutions Help                                          
                                                                              
 SAS Registry              Contents of 'EMAIL'  
   SAS_REGISTRY            Name                   Data            
   APPLICATIONCLASS        IGNOREFROM             1              
   COLORNAMES   
   CORE                  
      EMAIL  
      ....                            
   ODS                    
   PRODUCTS              
   SASCLSID

The previous steps stored the new registry value in the current user's SASUSER library. To make this change available globally for all users, complete the following steps:

  1. Bring up the SAS Registry Editor and expand CORE\\EMAIL.
  2. At the top of the screen, select File ► Export Registry File....
  3. Specify a filename and click Save.
  4. In a batch job, run the following program, with the SASHELP library allocated with DISP=OLD:
    proc registry import="xxxxx.xxxxx.xxxxx" usesashelp; run;

    In the above program, xxxxx.xxxxx.xxxxx is the data set that you created in step 3. You must have Update access to the SASHELP library.


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemN/Az/OS9.3 TS1M29.4 TS1M1
SAS SystemBase SASz/OS9 TS M09.4 TS1M1
Microsoft® Windows® for 64-Bit Itanium-based Systems9 TS M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9 TS M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9 TS M0
Microsoft Windows 2000 Advanced Server9 TS M0
Microsoft Windows 2000 Datacenter Server9 TS M0
Microsoft Windows 2000 Server9 TS M0
Microsoft Windows 2000 Professional9 TS M0
Microsoft Windows NT Workstation9 TS M0
Microsoft Windows Server 2003 Datacenter Edition9 TS M0
Microsoft Windows Server 2003 Enterprise Edition9 TS M0
Microsoft Windows Server 2003 Standard Edition9 TS M0
Microsoft Windows XP Professional9 TS M0
64-bit Enabled AIX9 TS M09.4 TS1M1
64-bit Enabled HP-UX9 TS M09.4 TS1M1
64-bit Enabled Solaris9 TS M09.4 TS1M1
HP-UX IPF9 TS M09.4 TS1M1
Linux9 TS M09.4 TS1M1
OpenVMS Alpha9 TS M09.4 TS1M1
Tru64 UNIX9 TS M09.4 TS1M1
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.