tried to resolve problem with umlauts in subject

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2024-05-19 17:50:21 +00:00
parent 1d1044980c
commit dde6fa7162
3 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
<groupId>org.example</groupId>
<artifactId>Widerhall</artifactId>
<version>1.0.4</version>
<version>1.0.5</version>
<build>
<plugins>
<plugin>

View File

@@ -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;

View File

@@ -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>