In reply to Mark A Hinds.

I read that App passwords apply only when you have two-factor auth enabled. I don't know if that's getting in your way. If you have access to another command-line tool like sendmail, perhaps you can try with the same settings and see if it works or if the problem is specific to SAS OnDemand for Academics.