Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message-Id Header #33

Open
branzo opened this issue Jul 28, 2022 · 1 comment
Open

Message-Id Header #33

branzo opened this issue Jul 28, 2022 · 1 comment

Comments

@branzo
Copy link

branzo commented Jul 28, 2022

Please update documentation, and eventually the code to take into account the automatic addition of a proper Message-Id as it may
happen that the first-hop SMTP server used to the send the email is not actively adding the missing header.

carlosbet added a commit to carlosbet/AIM that referenced this issue Jul 29, 2022
Added a valid Message-ID header using an GUID and the host.

Other possible headers added by user to `MailMessage.Headers`
collection are processed.

Fixes nilnull#33 issue
@carlosbet
Copy link
Contributor

With this automatically adding a valid message ID header, and also you can set your custom headers such as System.Net.Mail does. For example:

MimeMailMessage msg = new();
msg.HeadersEncoding = Encoding.UTF8;
msg.Headers.Add("X-HeaderName", "HeaderValue");
...

Umm, and this makes me reconsider that maybe it's not a good idea to use the HeadersEncoding property to determine encoding in address fields and should be isolated in MimeMailAddress such I did make initially. At this point, I mean this: #30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants