I have Google workspace, created for my mail application passwords and used the code as password in my .NET application. This worked for me in test application without Google workspace, from private mail.
However now I want to use it with custom domain and this does not work. If you recommend OAuth, then please link proper article on how to connect OAuth SMTP functionality with external application (any language, can be even bash). Currently, I get an error
535: 5.7.8 Username and Password not accepted.
Steps to reproduce:
- domain on domain distributor
- add it to google workspace
- google workspace mail -> application passwords -> generate 16char password
- in .NET:
await client.AuthenticateAsync(googleWorkspaceGmail, googleWorkspaceGmailApplicationPassword);
Edit: what should I use instead of google workspace to achieve my goal? What is the standard?
SmtpClientat all, you'll need to find another library such as MailKit