Skip to content

Commit 5557db2

Browse files
committed
fix: 修复邮件通知类型中username未赋值导致的setFrom逻辑错误
1 parent 79b2257 commit 5557db2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

jetlinks-components/notify-component/notify-email/src/main/java/org/jetlinks/community/notify/email/embedded/DefaultEmailNotifier.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ public DefaultEmailNotifier(String id,
125125
mailSender.setJavaMailProperties(properties.createJavaMailProperties());
126126
this.notifierId = id;
127127
this.sender = properties.getSender();
128+
this.username = properties.getUsername();
128129
this.javaMailSender = mailSender;
129130
this.fileManager = fileManager;
130131
this.webClient = builder.build();

0 commit comments

Comments
 (0)