0

Im using worklight 6.0.

I have to send email with attachment as a file in jquery. I read in many sites like we can use email composer . How to implement this one or any other way to handle this?

user2967626
  • 25
  • 1
  • 7

2 Answers2

1

You can go through the cardova plugin which is well documented and plugin is there for doing it. Here is some of the link which helps you

Cardova plugin for Email Composer

There is a sample code for IOS

vishal_g
  • 3,871
  • 4
  • 21
  • 34
0

jQuery has got nothing to do with it.

  • If you would like to open the email client from your app you can use a URL scheme: window.location.href = "mailto:an@email.address?subject=My Subject Line";

  • If you would like to also attach a file, I believe you will need to write a Cordova plug-in for this purpose, and as for the contents (code) of the plug-in itself, you may want to take a look at these questions (first, second).
Community
  • 1
  • 1
Idan Adar
  • 44,156
  • 13
  • 50
  • 89