open/close smtp connections from within the mail_all() subroutine
reconnect every 50 messages (previously 20).
logging cosmetic changes