In most cases, the SAS System can send SMTP emails via an SMTP server rather than through the locally installed email client. If you have problems sending SMTP emails from SAS, use the following steps to troubleshoot the problem. These steps help you determine whether you can send emails from an SMTP server, without SAS being involved. Perform these steps on the same machine where SAS is installed. If you cannot send emails successfully by following these steps, neither can SAS.
Note: This is not applicable to Secure SMTP. There is no manual way to test Secure SMTP.
-
- Access a DOS command prompt by selecting Start ► Run. Then enter CMD in the Open field and click OK.
- The following syntax shows the information that you need to enter, one line at a time, at the command prompt. The text in brackets represents user-supplied values. This is an example only, and your domain name might not be .com. It could be .gov, .org, .edu. Use the correct domain name for your organization.
telnet your-mail-host.com 25 helo your-domain-name.com mail from: your-user-name@domain.com rcpt to: your-recipient@domain.com data Hello. This is a test. . quit
Note that you must know the appropriate host server name and domain name as well as the sending and receiving email addresses (To/From). Port 25 is the default port, although your port number might be different. If you do not know this information, contact your local email administrator.
The following example shows the return prompts (in parentheses) that you get for each line:
telnet mailhost.compak.com 25 helo compak.com (Hello [ip address]) mail from: michael.brown@compak.com (Sender Ok) rcpt to: lisa.smith@compak.com (Recipient Ok) data (Send data now. Terminate with ".") Hello. This is a test. . (Message accepted for delivery) quit (Goodbye!)
- Check your email client to verify that you did receive the email message.
- Exit the DOS window by submitting the EXIT command.