Trigger: Sending Email without opening Client

210 views
Skip to first unread message

Vijay Mishra

unread,
Feb 27, 2017, 9:49:55 AM2/27/17
to mementodatabase
Hello All,

I'm NEW to Memento Database AND stuck on task where I have to create a trigger on mail send  without opening the client list. I have searched the forum and found below which works with opening email client:

var i = intent("android.intent.action.SENDTO");
i.data("mailto:vijay...@gmail.com"); // addresses where to send
i.extra("android.intent.extra.SUBJECT", "TestSubject"); // 2nd arg is what you want
i.extra("android.intent.extra.TEXT", "TestBody"); // 2nd arg is what you want

i.send(); // send it out


Have anybody tried on sending mail without opening the client(i.e provide SMTP details within code itself). Your help will be appreciated.

Buffelsdrift Mountain Bike Park

unread,
Feb 28, 2017, 9:55:42 AM2/28/17
to mementodatabase
Search www.stackoverflow.com.
Some good examples there to spark a solution

Buffelsdrift Mountain Bike Park

unread,
Mar 4, 2017, 6:01:43 AM3/4/17
to mementodatabase
Vijay

The email sending is JavaScript that sends an Intent call to the Android OS and activiates the preferred Email Client on your device. So it is not Memento that controls it but your JavaScript code.
My understanding from research on Stackoverflow is that that with JavaScript it is not possible on the Android device but only in the SMTP Server

I also looking for the same solution

Bike Park SA

unread,
Mar 5, 2017, 1:50:28 PM3/5/17
to mementodatabase
Try this link for inspiration on Email Intent on Android
https://developer.android.com/guide/components/intents-common.html#Email
Reply all
Reply to author
Forward
0 new messages