Use hostname (autodetected or from the options.name property) for Message-Id instead of "Nodemailer"
Remove legacy code - node v0.4 is not supported anymore anyway