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

Question about SMTPUTF8 #132

Closed
mnmallea opened this issue May 8, 2024 · 5 comments
Closed

Question about SMTPUTF8 #132

mnmallea opened this issue May 8, 2024 · 5 comments

Comments

@mnmallea
Copy link

mnmallea commented May 8, 2024

Hi,
I'm trying to receive emails that contains UTF8 characters in their From or To addresses like eñe@example.org.
I saw that subetha doesn't advertise to support SMTPUF8 so I am assuming that it doesn't support it at least by default.
Is there a way to enable its support? Does it depends on how we parse the data input stream or does it depend on the sever itself?

@davidmoten
Copy link
Owner

thanks for the question. I'll have to get my head around that as an SMTP extension first. I've noticed that some SMTP servers support utf-8 characters in From, To addresses by default and others require the support to be turned on by a command. I tend towards the first. Do you have an opinion on that?

@mnmallea
Copy link
Author

mnmallea commented May 9, 2024

I also tend to the first option. I think that if the client receives SMTPUTF8 in the EHLOresponse then it will just send the addresses with utf8 encoding.

@davidmoten
Copy link
Owner

I just modified a unit test to use a To with eñe and the message handler did not call the recipient method with that value. This suggests that we don't support general UTF-8 in addresses. I'll have a look soon.

davidmoten added a commit that referenced this issue May 12, 2024
@davidmoten
Copy link
Owner

I've knocked up always-on support for SMTPUTF8. I wonder if should be configurable. Can you review the PR?

davidmoten added a commit that referenced this issue May 14, 2024
@davidmoten
Copy link
Owner

davidmoten commented May 14, 2024

Release 7.1.1 with SMTPUTF8 support, on Maven Central now. Let me know how it goes!

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

No branches or pull requests

2 participants