Hopefully solved problems sending mails to gmail.

Added Date and Message-Id headers manually.