-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Bug encoding in setFrom() #27
Comments
Hello @devpad, can I ask you where the output came from ? I guess it's from the mock implementation but I want to be sure. Thanks, |
Hello @Mogztter, yes, the original letter in Gmail, shows the same output. |
Ok I will do some testing on this issue, thanks. |
@devpad is your source code encoded in UTF-8 ? |
@Mogztter, yes, source codes in UTF-8. The setFrom() method doesn't code a user name in UTF-8 whereas in the addTo() method everything works correctly. Example: Email email = new Email();
email.setSubject("Example");
email.setFrom("Кириллица <login@gmail.com>");
email.addTo("Кириллица <login2@gmail.com>");
...
MailerPlugin.send(email); Output in gmail:
|
Strange... the play-mailer extension is based on Apache commons email and the code is similar between
You are using the plugin in Java but we simply convert the Java object Email to the Scala object Email : https://github.com/playframework/play-mailer/blob/master/src/main/scala/play/api/libs/mailer/MailerPlugin.scala#L114 Can you try to force the charset with |
Mistake in a name of the sender when using cyrillics
Output:
From: ""5AB" <test@example.com>
Should be so:
From: =?UTF-8?B?0KLQtdGB0YI=?= <test@example.com>
The text was updated successfully, but these errors were encountered: