The following can help with troubleshooting a faulty email connection! Example error messages:

ERROR: Email: The connection was refused.

1 - list all email options

proc options group=email;
run;

2 - Add the debug option to the filename statement

filename myref email DEBUG; 

Sent lines are prefixed with S: and received lines are prefixed with R:

3 - Support notes

Does the SMTP server work without SAS? http://support.sas.com/kb/18/363.html

4 - Windows Documentation

https://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#sassession.htm#usingemail

If all else fails - just use gmail!