Results 1 to 2 of 2

Thread: e-mail not working

  1. #1
    Join Date
    Aug 2013
    Thanked 0 Times in 0 Posts

    Default e-mail not working

    I am working on cordova email composer to send emails. But I am getting the error "email plugin not available" . when I tried to execute the app I am getting the above said error. i'm building locally on my laptop using android emulator. Here is my code.

    <!DOCTYPE html>
        <title>Contact Example</title>
        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
        <script type="text/javascript" charset="utf-8">
    document.addEventListener("deviceready", onDeviceReady, false);
        // Cordova is ready
        function onDeviceReady() {
            // specify contact search criteria
            var options = new ContactFindOptions();
            options.filter="";          // empty search string returns all contacts
            options.multiple=true;      // return multiple results
            filter = ["displayName"];   // return contact.displayName field
            // find contacts
            console.log("The following contact has been selected:" + JSON.stringify(contact));
            console.log("Error: " + err);
        // onSuccess: Get a snapshot of the current contacts
        function onSuccess(contacts) {
            for (var i=0; i<contacts.length; i++) {
        // onError: Failed to get the contacts
        function onError(contactError) {
    document.addEventListener("deviceready", draftEmail, false);
    function draftEmail(subject, message) {
        if (!cordova.plugin){
            //non-mobile - plugins are not present.
            alert("Email plugin is not available");  
        if (!isAvailable){
            //mobile, but no email installed
            alert("Email is not available")
        }'gmail', '');{
            app: 'gmail',
        subject: 'Sent from Gmail',
            body: 'How are you?',
            isHtml: true
    Config file:
    <feature name="EmailComposer"> <param name="android-package" value="de.appplant.cordova.plugin.emailComposer.EmailComposer" /> </feature> 
    <feature><gap:plugin name="" version="0.8.0" /></feature>

  2. #2
    Join Date
    Jul 2008
    Derbyshire, UK
    Thanked 599 Times in 575 Posts
    Blog Entries


    I haven't personally used it but Google brings up quite a few results
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

Similar Threads

  1. PHP Mail Not Working
    By onestopplay in forum PHP
    Replies: 2
    Last Post: 05-03-2010, 03:58 PM
  2. Replies: 1
    Last Post: 03-24-2010, 06:25 PM
  3. Replies: 1
    Last Post: 09-17-2009, 10:00 PM
  4. Resolved ahref mail to NOT WORKING
    By vineet in forum HTML
    Replies: 8
    Last Post: 12-21-2008, 08:05 AM
  5. Mail form validation - not working with CGI script
    By Franco50 in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 07-04-2006, 06:17 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts