Failed to send email. Reason: Invalid login: 535 Authentication failed

Try setting “secure” to “false”.

The “false” is confusing – it’s still secure. Have a look here, for example: