org.springframework.mail.MailSendException: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 553 5.1.2 The sender address is not a valid RFC-5321 address 4y0AdBSVQSiHHlhflZ52Mw - nsmtp ; nested exception is: com.sun.mail.smtp.SMTPSenderFailedException: 553 5.1.2 The sender address is not a valid RFC-5321 address 4y0AdBSVQSiHHlhflZ52Mw - nsmtp

—> 해결: EventUserService 클래스에서 yml 전송메일 명시해둔거 가져와 사용할 때 $ 이걸 놓침

*// yml 에 검증 코드 전송자 이메일 명시해둔거 가져와 사용하기*

@Value("${study.mail.host}")

private String mailHost;

💡 $ = yml 의 값을 참조한다는 약속된 문법이다.

image.png