File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/java/earlybird/earlybird/email Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1212import lombok .RequiredArgsConstructor ;
1313import lombok .extern .slf4j .Slf4j ;
1414
15+ import org .springframework .beans .factory .annotation .Value ;
1516import org .springframework .mail .javamail .JavaMailSender ;
1617import org .springframework .retry .annotation .Backoff ;
1718import org .springframework .retry .annotation .Retryable ;
2324@ Service
2425public class SendEmailService {
2526
27+ @ Value ("${spring.mail.password}" )
28+ private String mailPassword ;
29+
2630 private final JavaMailSender javaMailSender ;
2731
2832 @ Retryable (maxAttempts = 5 , backoff = @ Backoff (delay = 1000 ))
@@ -31,6 +35,7 @@ public void send(
3135 PromotionEmailVerification promotionEmailVerification ,
3236 PromotionEmailMessageType promotionEmailMessageType ) {
3337 try {
38+ log .info ("mailPassword = " + mailPassword );
3439 MimeMessage message = javaMailSender .createMimeMessage ();
3540
3641 message .addRecipients (Message .RecipientType .TO , promotionEmailVerification .getEmail ());
You can’t perform that action at this time.
0 commit comments