Gmail mailer authentication issue

No, no no. You should NOT use setup mail step in the server action. Remove it from the server action.
Once you define the mailer globally, you just need a SEND MAIL step in the server action, referencing to the global mailer.
After you do that, please set this option back to 1:

public $SMTPDebug = 1;

And here's more info about globals:

1 Like