Is there a way to check if the email was received or not using spring framework’s email functions?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You cannot check whether the email was received. The only errors that will be reported are those during the send process (Invalid address, wrong smtp credentials, etc.).
After the mail gets sent by the mail server, things are out of your business. What you could do is to check whether the receivers mail server sends a bounce (blocked email. full post box, no such address, etc.). But that have to happen outside the mail send process. Most likely done by a scheduler some time after emails have been sent.