cPanel: SMTP error 535 Incorrect authentication data
Sometimes when sending emails on the website through SMTP scripts and Contact forms the following error is observed
535 Incorrect authentication data
To fix this
1. Login to WHM with root credentials and navigate to
Home » Security Center » SMTP Restrictions
2. If SMTP Restrictions is enabled, just disable it
3. Now try sending the mail again, this time it should work.