added critical bugfix from andris9/simplesmtp

https://github.com/andris9/simplesmtp/commit/4c75523f0be2bcda31bf92822bcd48b79100b728