This thread talks about turning on using an App password with google.
Send-email-with-attachment Post