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

Incomplete SMTPUTF8 implementation #209

Open
Hrnkas opened this issue Nov 23, 2018 · 0 comments
Open

Incomplete SMTPUTF8 implementation #209

Hrnkas opened this issue Nov 23, 2018 · 0 comments

Comments

@Hrnkas
Copy link

Hrnkas commented Nov 23, 2018

According to RFC 6531, SMTPUTF8 must be used with BODY=8BITMIME.

The thing is, the original code works perfectly with Gmail SMTP Server, but there is an issue with Office365 SMTP Server (smtp.office365.com), that UTF8 encoded subject "Auftragsbestätigung" gets wrapped into quotet word: Subject: =?iso-8859-1?Q?Auftragsbest=C3=A4tigung?=

This happens on the server. VMIME sends it as plaintext: Subject: Auftragsbestätigung

I tried changing it myself in SMTPCommand::MAIL, changing following code:

cmd << " SMTPUTF8";

to

cmd << " SMTPUTF8 BODY=8BITMIME";

This modification still does not work with Office365 SMTP Server. Any idea what needs to be done in order to address Office365 server properly?

Apparently, MailKit does it properly and works with smtp.office365.com. It sends BODY=8BITMIME after SMTPUTF8.

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

1 participant