Send Gmail Action Troubleshooting (Samsung Galaxy, Android 11)

Enabled21

New member
I'm having trouble with a macro designed to trigger Gmail to send an email. (The action works fine with SMS.) I'm able to run the same gmail action just fine on another phone (Android 9). I did note that no permissions have been granted in the user's Gmail account, but don't remember ever seeing a prompt to allow permissions, either. Any ideas as to how this might be getting hung up would be greatly appreciated.
 

MacroDroidDev

Administrator
Staff member
You should see a notification from Google to grant permission if it has not been granted, but if you are not seeing it then this should mean you have permission. Maybe try revoking the permission via your google account and then try the action again and see if you get the notification.

Is there anything in the system log that indicates what is going on?
 

Enabled21

New member
Thanks for the troubleshooting pointers on this elusive problem. Here is a snippet from the log of what appears to be one event. I would assume it was bad credentials, except that it seemed to behave the same way with another gmail account created expressly for the purpose. I don't believe there are any credentials to revoke. Do these log details give any helpful clues?

14-01-22 13:31:26 - Upload Service destroyed
14-01-22 13:31:26 - Email was sent to: anonymousperson@gmail.com
14-01-22 13:31:26 - Could not send email: javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials x16sm4007266qko.15 - gsmtp

14-01-22 13:31:25 - Using email password
14-01-22 13:31:25 - Uploading to Email
14-01-22 13:31:24 - Upload Service created
14-01-22 13:31:24 - Send Email: Call Ended: Macro1
14-01-22 13:31:24 - Invoking Macro: Call Ended: Macro1
14-01-22 13:31:24 - Call Ended (Any Number): +15638124403
 

MacroDroidDev

Administrator
Staff member
It looks like you have the "Use Password Authentication" option enabled. You should try disabling this and just using the default OAUTH mechanism. I think the standard password authentication can never work if you ever have 2FA enabled (and I think that is essential nowadays).
 

Enabled21

New member
Thanks for the catch - that was indeed the case.

We were able to uncheck the box and test again, but something in the macro still wasn't seeming to work properly. I'll plan to take another look at this when my client has more time, and post back.
 

MacroDroidDev

Administrator
Staff member
Firstly just to point out if for any reason you are using a non genuine version of the app (e.g. pirate or modded version) then the email action will not work because it relies on the signing key of the app.

If you are still having issue then make sure you are not using the password authentication option in the settings (as this will rarely work nowadays). Then please go into your google account and see what apps have connection to your account here: https://myaccount.google.com/connections

If you see MacroDroid please try removing it here. Then run the send email action again and hopefully you will see a notification from the Google app (I think) to give permission for MacroDroid to send emails.
 
Firstly just to point out if for any reason you are using a non genuine version of the app (e.g. pirate or modded version) then the email action will not work because it relies on the signing key of the app.

If you are still having issue then make sure you are not using the password authentication option in the settings (as this will rarely work nowadays). Then please go into your google account and see what apps have connection to your account here: https://myaccount.google.com/connections

If you see MacroDroid please try removing it here. Then run the send email action again and hopefully you will see a notification from the Google app (I think) to give permission for MacroDroid to send emails.
MD is not listed there.

Is there a way to reconfigure the email account in MD configuration? I don't see how.
 
Top