Gmail SMTPλ₯Ό μ΄μ©ν μ΄λ©μΌ μ μ‘κΈ°λ₯μ΄ μ€ν¨νλ©° μλ¬κ° λ°μνμ΅λλ€.
ν΄λΉ μλ¬μ λν΄ μμλ³΄κ² μ΅λλ€.
Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials 10-20020a63104a000000b0051806da5cd6sm2439853pgq.60 - gsmtp
λ‘κ·Έμ λμμλ λ§ν¬ https://support.google.com/mail/?p=BadCredentials
λ‘ μ μμ νμ λ μλμ κ°μ λ΄μ©μ νμΈν μ μμ΅λλ€.
2λ¨κ³ μΈμ¦μ μ¬μ©νλ κ²½μ° μ± λΉλ°λ²νΈ
λ‘ λ‘κ·ΈμΈμ΄ νμν©λλ€.
application.yml
...
mail:
host: smtp.gmail.com
port: 587
username: your_email
password: app_password
properties:
mail:
smtp:
starttls:
enable: true
...
password
κ°μ μ± λΉλ°λ²νΈλ‘ λ³κ²½νκΈ° μν΄ μλ μμ
μ μ§ννκ² μ΅λλ€.
μ± λΉλ°λ²νΈ
λ₯Ό μμ±ν©λλ€.application.yml
νμΌμ password
νλͺ©μ μ± λΉλ°λ²νΈλ₯Ό μ
λ ₯ν©λλ€.μ μ μλλ¨μ νμΈνμ΅λλ€.