Gmail send intent help

647 views
Skip to first unread message

clonfsp

unread,
Oct 16, 2013, 6:15:25 AM10/16/13
to tas...@googlegroups.com
Hello,

This maybe it is not a full tasker question, but near. I hope someone can help me.

I am trying to make a task with automatically open gmail to compose an email which has predefined fields (email to and subject). I want then manually write body and press the send button. I follow the instruction from this page:


Basically, I copy:

Create Tasker task as below.

  • New Task
  • New Action –> Misc
  • Select “Send Intent”
  • Fill below values
  • Action:Intent.ACTION_SEND
  • Extra:android.intent.extra.SUBJECT:Yourtexthere
  • Extra:android.intent.extra.SUBJECT:Yourtexthere
  • Package:com.google.android.gm
  • Class:com.google.android.gm.ComposeActivityGmail
  • Target:Activity

This works perfect for subject. Also if I write  Extra:android.intent.extra.TEXT:Yourtextthere  works perfect for body message. But I cann't populate the 'to' field. Does anybody knows what is the exact extra string to do this?

Thanks
FS

bdanders

unread,
Oct 16, 2013, 11:57:34 AM10/16/13
to tas...@googlegroups.com
Using the 'Intent Intercept' app, I clicked on a contact email and intercepted the intent that was generated. Here are the results:

ACTION: android.intent.action.SENDTO
DATA: mailto: contactaddress%40gmail.com

You might be able to use the data field along with what you already have to generate the result you seek. Last time I checked you can't have both data and extras in a tasker intent, so you might need to look into broadcasting the intent via shell.

bdanders

unread,
Oct 16, 2013, 12:16:23 PM10/16/13
to tas...@googlegroups.com
I just tested that and it works. At least in the latest Tasker beta, you can include both data and extra fields.
Reply all
Reply to author
Forward
0 new messages