Browse Source

tried to resolve problem with umlauts in subject

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
main
Stephan Richter 6 months ago
parent
commit
dde6fa7162
  1. 2
      pom.xml
  2. 4
      src/main/java/de/srsoftware/widerhall/mail/SmtpClient.java
  3. 2
      static/templates/footer.st

2
pom.xml

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

4
src/main/java/de/srsoftware/widerhall/mail/SmtpClient.java

@ -52,10 +52,10 @@ public class SmtpClient { @@ -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;

2
static/templates/footer.st

@ -1,5 +1,5 @@ @@ -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>

Loading…
Cancel
Save