Skip to content

Commit

Permalink
adding 'Date' header for sended email (MID-5032)
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Mar 23, 2020
1 parent 0a3430f commit 645f16b
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -222,6 +222,7 @@ public void send(Message mailMessage, String transportName, Event event, Task ta

try {
MimeMessage mimeMessage = new MimeMessage(session);
mimeMessage.setSentDate(new Date());
String from = mailMessage.getFrom() != null ? mailMessage.getFrom() : defaultFrom;
mimeMessage.setFrom(new InternetAddress(from));

Expand Down

0 comments on commit 645f16b

Please sign in to comment.