Browse Source

tried to resolve problem with umlauts in subject

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
main
Stephan Richter 7 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 @@
<groupId>org.example</groupId> <groupId>org.example</groupId>
<artifactId>Widerhall</artifactId> <artifactId>Widerhall</artifactId>
<version>1.0.4</version> <version>1.0.5</version>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>

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

@ -52,10 +52,10 @@ public class SmtpClient {
} }
if (newSender != null){ if (newSender != null){
forward.setFrom(newSender); forward.setFrom(newSender);
forward.setSubject(subject+" (from "+oldSender+")"); forward.setSubject(subject+" (from "+oldSender+")","utf-8");
} else { } else {
forward.setFrom(oldSender); forward.setFrom(oldSender);
forward.setSubject(subject); forward.setSubject(subject,"utf-8");
} }
if (replyTo != null) forward.setReplyTo(InternetAddress.parse(replyTo)); if (replyTo != null) forward.setReplyTo(InternetAddress.parse(replyTo));
var recipientType = bcc ? Message.RecipientType.BCC : Message.RecipientType.TO; var recipientType = bcc ? Message.RecipientType.BCC : Message.RecipientType.TO;

2
static/templates/footer.st

@ -1,5 +1,5 @@
<div class="footer"> <div class="footer">
Widerhall Mail Distributor. 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> Get the sources at <a target="_blank" href="https://git.srsoftware.de/StephanRichter/Widerhall">git.srsoftware.de</a>
</div> </div>

Loading…
Cancel
Save