MacroDroid and OAUTH examples

The better result that I had was using INTENT. It creates a new message but doesn't fill SUBJECT and TEXT.
 

Attachments

  • Screenshot_20240328_155251_Gmail.jpg
    Screenshot_20240328_155251_Gmail.jpg
    236.7 KB · Views: 3
  • Screenshot_20240328_155229_MacroDroid.jpg
    Screenshot_20240328_155229_MacroDroid.jpg
    340.9 KB · Views: 4
  • Screenshot_20240328_155218_MacroDroid.jpg
    Screenshot_20240328_155218_MacroDroid.jpg
    343.1 KB · Views: 4
  • Screenshot_20240328_155203_MacroDroid.jpg
    Screenshot_20240328_155203_MacroDroid.jpg
    361.4 KB · Views: 4

RSF

Well-known member
In your Send Email action, did you choose Gmail or SMTP?
1711732011487.png
That "AuthenticationFailedException" error in your log looks like it might have come from an SMTP attempt. I have always used the GMail option...
 
I tried both options. (see log)

With Gmail there's no error message at log and the popup comes in English.

With SERVER there's an error message at log and the popup comes in Portuguese.

Thanks a lot for your time.
 

Attachments

  • Screenshot_20240329_152244_MacroDroid.jpg
    Screenshot_20240329_152244_MacroDroid.jpg
    688.5 KB · Views: 4
  • Screenshot_20240329_152209_MacroDroid.jpg
    Screenshot_20240329_152209_MacroDroid.jpg
    1.1 MB · Views: 4
  • Screenshot_20240329_152117_MacroDroid.jpg
    Screenshot_20240329_152117_MacroDroid.jpg
    1.1 MB · Views: 4

RSF

Well-known member
Thanks for clarifying. Does the email address shown in MacroDroid's Settings > EMail Settings look correct? And do you have any permissions denied to MacroDroid (in Android's Permissions settings screen for the app)?

If all that looks good, one thing you could try which might provide additional info to @MacroDroidDev (as well as possibly work in the interim) is to install the MailTask plug-in onto your phone. Once it's installed, open it, accept all its permissions, tap the "Authorize Gmail" (or similar wording) link at the top of the screen, and approve (in Google's security screen) MailTask for sending emails on your behalf. Then, back in MacroDroid, add an action to call MailTask:
  1. Select Tasker/Locale Plugin in the Applications area of the action list
    ApplActions.png
  2. Select MailTask, then Send email from the plugin list
    MailTaskPlugin.png
  3. Fill out the email recipient, subject, body-text, etc.
  4. Test the action
See what errors occur, if any, at any step along any of that...
 

hsurB

Well-known member
I have difficulties setting up send email action on my main phone too, even though I have done that multiple times on different devices.
I have it set up on my other phone currently too and it seems to work fine so I am not sure what it is, but it feels as if it was lacking a little bit of reliability.
I ended up using mailtask as well (it also allows for sending body as html, I dont think macrodroid does that, right?)
End its easy to trigger that grant permission window from that app, if I was about to change email I want to use to send emails through macrodroid action its not that easy from my experience
 
Hi.

I installed MD at my wife's phone and the problem with sendto and intent gmail is the same. Even with both alternatives (Gmail and SMTP).

Today I will try with mailtask.

Thanks a lot.
 
  • Like
Reactions: RSF
Top