tried to resolve problem with umlauts in subject
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>org.example</groupId>
|
||||
<artifactId>Widerhall</artifactId>
|
||||
<version>1.0.4</version>
|
||||
<version>1.0.5</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
||||
@@ -52,10 +52,10 @@ public class SmtpClient {
|
||||
}
|
||||
if (newSender != null){
|
||||
forward.setFrom(newSender);
|
||||
forward.setSubject(subject+" (from "+oldSender+")");
|
||||
forward.setSubject(subject+" (from "+oldSender+")","utf-8");
|
||||
} else {
|
||||
forward.setFrom(oldSender);
|
||||
forward.setSubject(subject);
|
||||
forward.setSubject(subject,"utf-8");
|
||||
}
|
||||
if (replyTo != null) forward.setReplyTo(InternetAddress.parse(replyTo));
|
||||
var recipientType = bcc ? Message.RecipientType.BCC : Message.RecipientType.TO;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="footer">
|
||||
Widerhall Mail Distributor.
|
||||
Version 1.0.4.
|
||||
Version 1.0.5.
|
||||
Get the sources at <a target="_blank" href="https://git.srsoftware.de/StephanRichter/Widerhall">git.srsoftware.de</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user