ChunkEMail is native extension designed to use the Android email composer to send emails. Even though a developer can launch the e-mail composer using a mailto:
link in a navigateToURL()
call, there are limitations in that approach, such as the number of characters. The extension is useful, for instance, when the e-mail must be populated with a big chunk text.
The extension works using the singleton pattern and its most important method is sendMail()
, used to open the email composer. When invoking that method, a developer can specify the destination address, subject, body (email text), title, cc and bcc addresses.
Sample
if(ChunkEMail.getInstance().isSupported()) { sendMail('test@test.com', 'Hi from ANE', 'This is the message'); }