Extract sms message content

fcassia

New member
Hi there,

I'm kinda new to MacroDroid. Not a total newbie but the only thing I did with it last year was to automate sending crash info via repeated clicks and copy pasting text on a loop.

Right now what I'm attempting to do is creating an sns to email forwarding script.

I can see there's a way to monitor for incoming sns messages, use * as selector, and then I can trigger actions on it...

But the problem is that none if these actions involve taking the text / sender info of the received sms and putting it on a string variable.

Am I missing something?

The next step would be to put that string into the text body of an email (GMail) and send it.

My idea is to leave this running 24/7/365 and forward all received sms via email to myself.

I know there are ready made apps on Play Store that do this but all seem shady or come from untrusted sources.

Thanks for any help.

F
 

Ernst

New member
My idea is to leave this running 24/7/365 and forward all received sms via email to myself.
That's exactly what I am doing with my old phone and telephone number.

Incoming calls (caller name/number) and SMS messages are forwared to my new phone via GMail.
I have created a new GMail account especially for all my MacroDroid GMail notifications to minimize the risk that MacroDroid is sending 'spam' from my real address by error.

The macro is very basic

1) a trigger for missed calls and SMS from any number

2) Select Send eMail and choose GMail Account

3) Fill out the eMail template

4) the caller number etc. are in the variable menu at the top

PS I have set up a second macro to send me a GMail message when the battery level of the old phone is lower than 20%.

Fwd 1.jpg

Fwd 2.jpg

Fwd 3.jpg

Fwd 4.jpg
 
Last edited:

Nogods

New member
I tried to set this up just for received SMS messages. The SMS received from any contact, any number, and any noncontact will not fire the macro. The log shows nothing after an sms is received. I check to be certain Macrodroid has permissions for text and phone, and checked the "monitor inbox" also. I have a rooted Pixel 4A. with Android11. It seems as though something is blocking Macrodroid's access to the sms inbox
 
Top