In reply to Leonid Batkhan.

Leonid,

regardless of whether the email addresses are embedded in code (bad practice) or stored in a configuration file (or sas dataset) it should be one of your tests to verify that this part of the code runs without error. If you have a send_email macro, then you can test it independently and use it in any program that needs to send emails.
regards
Mike O'Neil