'Send an e-mail without user interaction' requires user interaction

456 views
Skip to first unread message

sam.fi...@gmail.com

unread,
Apr 27, 2018, 10:27:38 PM4/27/18
to Automate
Hi Guys,

We are having some issues sending emails without user interaction.

Regardless of the combination of email block, email server or account used, emails are only ever composed, not sent.

I can understand why this might not work sending via Gmail due to security restrictions etc from Google, but even after setting up a generic 'Email Send' block with the mail server details & logins specified, Automate still opens the default email app, composes an email and requires a manual press of the 'send' button to send the email.

We have tried this on two phones (S6 & S7) with the same results.

Even more strangely, in some cases when the flow is triggered, we are prompted to install the 'Trigger' app!?  (there is no change in behaviour once this is done).

WTH is going on here!?

Any suggestions would be greatly appreciated.

Thanks,

Sam.

Henrik "The Developer" Lindqvist

unread,
Apr 28, 2018, 3:10:03 PM4/28/18
to Automate
Make sure to use the Email send or Gmail send blocks:
http://llamalab.com/automate/doc/block/email_send.html
http://llamalab.com/automate/doc/block/gmail_send.html

That any of those two blocks would open a third-party app, like Trigger, is impossible since they're not rely on any external app, nor Android API (there is none for SMTP).

sam.fi...@gmail.com

unread,
Apr 29, 2018, 11:03:39 PM4/29/18
to Automate
Hi Henrik, thanks for your reply.

Yes, I have definitely tried using both the 'gmail send' and 'email send' blocks, but the result is always the same.

That's what I thought; using those blocks should not open a third party app.  Nevertheless, this is what is happening.

How can we diagnose the cause of this issue?

Henrik "The Developer" Lindqvist

unread,
Apr 30, 2018, 3:00:58 PM4/30/18
to Automate
Post/share the flow.

sam.fi...@gmail.com

unread,
May 1, 2018, 6:51:52 AM5/1/18
to Automate
How can I send it to you privately?  It has my email username / password in it.

I presume you want me to post the .flo file?

sam.fi...@gmail.com

unread,
May 1, 2018, 6:57:33 AM5/1/18
to Automate
...actually, perhaps the SMTP server credentials are stored in Automate & not in the flow?

In any case, I'd rather not post it publicly with my private email addresses etc exposed.

Henrik "The Developer" Lindqvist

unread,
May 1, 2018, 2:38:45 PM5/1/18
to Automate
E-mail me at in...@llamalab.com

Credentials are never stored in a flow:
http://llamalab.com/automate/doc/security.html#accounts

sam.fi...@gmail.com

unread,
May 1, 2018, 6:23:12 PM5/1/18
to Automate
Sent.

Henrik "The Developer" Lindqvist

unread,
May 1, 2018, 9:31:07 PM5/1/18
to Automate
I see no issue with the flow.
Sadly i have no idea how it could open your email client, that's impossible unless it intercepts internet traffic (VPN) going to the STMP server, or you're using a hacked Automate app.


On Wednesday, May 2, 2018 at 12:23:12 AM UTC+2, sam.fickling wrote:
Sent.

Henrik "The Developer" Lindqvist

unread,
May 2, 2018, 1:32:24 PM5/2/18
to Automate
Got an idea of the cause.
Try without the NFC tag scanned block.

You've likely written a tag using the Trigger app, Android may ask you to install it when you scan the tag.
You may also have written an mailto: URL to the tag which cause teh email client to open.

Use the "Write tag" button in the NFC tag scanned block to overwrite the tag.

sam.fi...@gmail.com

unread,
May 5, 2018, 7:57:22 AM5/5/18
to Automate
Yes, you are correct!

As you suspected, it appears that the initial application we were using (Trigger), actually wrote a URL to the tag and this is why it was launching trigger (even prompting to install it after it had been uninstalled and even on a different phone) and performing the previously programmed task via Trigger instead of doing what we had programmed Automate to do!

Once I write plain text to the tag the Automate flow worked as expected.

Thanks very much for your sharp thinking and assistance with this Henrik, I appreciate it!
Reply all
Reply to author
Forward
0 new messages