Somebody kindly guide me for sending email through webintent plugin for Monaca
Asked
Active
Viewed 1,228 times
2 Answers
1
send an email using the "template_a" template
var username = 'John';
monaca.cloud.Mailer.sendMail("userOidA", "template_a", {"name": username})
.done
(
function()
{ /* What to do after sending an email is success. */ }
);

Tharif
- 13,794
- 9
- 55
- 77
-
hang on..!!! should i change my question because i think webintent serves the purpose- will let the user pick the app through which email can be sent. – Leo Mar 21 '15 at 09:45
0
After my frustration fueled-up my curiosity i have some function test () {
window.plugins.webintent.startActivity (
{
action: window.plugins.webintent.ACTION_VIEW,
url: 'mailto:someone@example.com'
},
function () {},
function () {alert ('Failed to open URL via Android Intent');}
);
}

Leo
- 77
- 1
- 10