Extract email subject and text

Gordon3

New member
Hi guys

I am new to macrodroid and am having issues with a thought.

I was trying to setup a macro to:
- copy the number in the subject line and paste to phone number section of the messaging
- copy the body of the email until this sign "~" and paste to sms messaging

I cannot get it to work :(

I know I need two variables (the number and the message).

I can get it to open Gmail, but cannot get it to select the top most email, or even do any of the other things. Would appreciate some help?
 
Last edited:

Gordon3

New member
Thanks for a prompt reply!

Re: MailTask: I just downloaded the plugin. Let me try poke about now
 
Last edited:

Gordon3

New member
Hi guys. I tried to work on this - I have got MailTask and the variables. But it's still not working.

I get the message "Message failed to sent" (from the messaging app - not from MacroDroid). What am I not doing? :( Thanks!
 

Attachments

  • Email.png
    Email.png
    39.8 KB · Views: 23

Gordon3

New member
Thanks for replying mate! I've given permission to messaging on Settings > Apps > MacroDroid. Is there more I should be doing? I only have one messaging app. Do I need to specify? Also, I did notice that the error I got was Message not sent 0:0 which I wonder means that I've parsed something wrongly?
 

RSF

Well-known member
Try using the value of the phone # and message variables directly, instead of using the "String Value" option:
1691553653125.png

See the "{lv=...}" instead of "{strval=...}"...

That "strval=" option attempts to convert a string into a number, which might be confusing your SMS app.
 
Top