Add Message-ID header to sent emails

The Message-ID header should be present in sent emails.
If it's missing many spam detectors mark emails as spam.
Merge pull request #1726 from mlocati/add-messageid-header

Add Message-ID header to sent emails