trouble with sending mail with Spring mail through somain registrar 1and1 smtp

前端 未结 1 849
-上瘾入骨i
-上瘾入骨i 2021-01-25 19:32

I\'m trying to send an email from a spring boot application with spring mail (1.5.8.RELEASE) JavaMailSender

sending through gmail SMTP is fine. however sending email th

1条回答
  •  醉话见心
    2021-01-25 19:57

    the cause of the issue was - I didn't programmatically set the sender field (The "From" field) in my outgoing message

    Once i set the From field the issue was resolved.

    unfortunately the response from 1and1's SMTP was irrelevant ("550 invalid DNS MX or A/AAAA resource record")

    Hope this helps anyone

    0 讨论(0)
提交回复
热议问题