Comments (6)
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,
Guillaume.
from play-mailer.
Hello @Mogztter, yes, the original letter in Gmail, shows the same output.
from play-mailer.
Ok I will do some testing on this issue, thanks.
from play-mailer.
@devpad is your source code encoded in UTF-8 ?
from play-mailer.
@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("Кириллица <[email protected]>");
email.addTo("Кириллица <[email protected]>");
...
MailerPlugin.send(email);
Output in gmail:
...
Date: Sun, 15 Feb 2015 16:38:48 +0300 (MSK)
From: "�8@8;;8F0" <[email protected]>
To: =?UTF-8?B?0JrQuNGA0LjQu9C70LjRhtCw?= <[email protected]>
Message-ID: <.....>
Subject: Example
MIME-Version: 1.0
...
from play-mailer.
Strange... the play-mailer extension is based on Apache commons email and the code is similar between setFrom
and addTo
:
- setFrom() : http://commons.apache.org/proper/commons-email/apidocs/src-html/org/apache/commons/mail/Email.html#line.746
- addTo : http://commons.apache.org/proper/commons-email/apidocs/src-html/org/apache/commons/mail/Email.html#line.767
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 setCharset
(I don't see why this should fix this issue but who knows 😄
https://github.com/playframework/play-mailer/blob/master/src/main/scala/play/libs/mailer/Email.java#L136
from play-mailer.
Related Issues (20)
- Compilation error when used with Play 2.6.18 and compile time injection HOT 2
- Unable to disable TLS v1.0 with play-mailer 5.0 (using Play 2.5.x) HOT 12
- Authentication Failure With Gmail in Play-Mailer 6.0.1 HOT 1
- Email sent goes to spam HOT 3
- New release or using the last dev version HOT 8
- office365 smtp session HOT 2
- Cross build for Scala 2.13.0
- No logs in mock mode (play 2.7) HOT 1
- .addTo() needs to be properly escaped or UTF-8 encoded HOT 1
- Unresolved dependencies path for 8.0.0 HOT 2
- NTLM authentication HOT 2
- Get a nullpointerexception when trying to send mail HOT 1
- SBT assembly HOT 3
- Not establishing StartTLS connection HOT 1
- Streaming attachments HOT 3
- [2.x] How to send a mail using TLSv1.2 or TLSv1.3 HOT 4
- Error - no object DCH for MIME type multipart/mixed HOT 1
- Add support for DKIM signing
- Switch to Jakarta Mail
- publish 9.0.0-M2 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play-mailer.