Closed tgulacsi closed 9 years ago
Thanks for your suggestion but I don't want to add such a function. Here are the reasons:
Message-ID
field I cannot reject adding helper functions for all other headers.* Implementing MakeMsgID is quite simple and only requires a small amount of code.
@alexcesaro So, is this correct:
message := gomail.NewMessage()
message.SetHeader("Message-ID", uuid.New().String())
As per RFC822, email messages should have a Message-ID field. I know it's the message creator's responsibility, but at least we could help him by including a MakeMsgID function, as in https://github.com/tgulacsi/go/blob/master/i18nmail/msgid.go ?
If it's easier on you, I can send it as a PR, but first please vet this suggestion.