Error Message
The smtp requires a secured connection or the client was not authenticated the server response was 5.7.0 Authentication required
This email failure error occurs when you are using a secured SMTP email server and have not used the correct log on credentials that will be used to authenticate when sending emails.
Solution
You can the resolve this error by using the correct credentials, Email:: User Name and Email::Password as required by the secured SMTP email server to authenticate when sending the emails.