Only send SMTP DATA command if we have some recipients, fixes #156
Improve the way that hostname is obtained, should be safer in CLI scripts, fixes #159