All Projects → EddyVerbruggen → Nativescript Email

EddyVerbruggen / Nativescript Email

Licence: mit
✉️ NativeScript plugin for opening draft e-mails

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Nativescript Email

Fiercephish
FiercePhish is a full-fledged phishing framework to manage all phishing engagements. It allows you to track separate phishing campaigns, schedule sending of emails, and much more.
Stars: ✭ 960 (+2033.33%)
Mutual labels:  email
Nativescript Image Swipe
A NativeScript widget to easily 👆 and 🔍 through a list of images
Stars: ✭ 35 (-22.22%)
Mutual labels:  nativescript
Postfwd Anti Geoip Spam Plugin
Postfwd plugin for blocking international spam botnets based on geographical location of IP addresses used to login to postfix via sasl.
Stars: ✭ 40 (-11.11%)
Mutual labels:  email
Notifo
Multi channel notification service for collaboration tools, e-commerce, news service and more.
Stars: ✭ 32 (-28.89%)
Mutual labels:  email
Emailobfuscator
Verschlüsselung von E-Mailadressen zum Schutz vor Spam
Stars: ✭ 34 (-24.44%)
Mutual labels:  email
Cuttlefish
Transactional email server with a lovely web interface
Stars: ✭ 985 (+2088.89%)
Mutual labels:  email
Nativescript Azure Mobile Apps
☁️ NativeScript plugin for working with Microsoft Azure Mobile Apps services
Stars: ✭ 31 (-31.11%)
Mutual labels:  nativescript
Https
Secure HTTP client with SSL pinning for Nativescript - iOS/Android
Stars: ✭ 45 (+0%)
Mutual labels:  nativescript
Nativescript Cli
Command-line interface for building NativeScript apps
Stars: ✭ 977 (+2071.11%)
Mutual labels:  nativescript
Laravel Mail View
Preview Laravel Mailables and notifications in your browser.
Stars: ✭ 41 (-8.89%)
Mutual labels:  email
Dialogflow Sendgrid
📮 Dialogflow + Sendgrid = AI Mailbox
Stars: ✭ 33 (-26.67%)
Mutual labels:  email
Lemail
仿 Linux shell 命令的邮箱命令行客户端
Stars: ✭ 34 (-24.44%)
Mutual labels:  email
House
Proof of Concept and Research repository.
Stars: ✭ 37 (-17.78%)
Mutual labels:  nativescript
Nativescript Keyframes
Facebook Keyframes plugin - if CSS animations don't cut it for ya
Stars: ✭ 32 (-28.89%)
Mutual labels:  nativescript
2018 Fake Mail Sender
PHP Fake Mail Sender Script with nicEditor - Send fake mails to anyone.
Stars: ✭ 43 (-4.44%)
Mutual labels:  email
App
The SimpleLogin back-end
Stars: ✭ 958 (+2028.89%)
Mutual labels:  email
Ns Vue Radio
A native white-label application built with NativeScript-Vue for community radios
Stars: ✭ 36 (-20%)
Mutual labels:  nativescript
Brazilian Utils
Utils library for specific Brazilian businesses
Stars: ✭ 1,023 (+2173.33%)
Mutual labels:  email
Anonaddy
Anonymous email forwarding
Stars: ✭ 1,022 (+2171.11%)
Mutual labels:  email
Nativescript Plugin Firebase
🔥 NativeScript plugin for Firebase
Stars: ✭ 990 (+2100%)
Mutual labels:  nativescript

NativeScript Email

NPM version Downloads Twitter Follow

You can use this plugin to compose an e-mail, have the user edit the draft manually, and send it.

Note that this plugin depends on the default mail app. If you want a fallback to a third party client app like Gmail or Outlook, then check for availability, and if not available use a solution like the Social Share plugin.

⚠️ Looking for NativeScript 7 compatibilty? Go to the NativeScript/plugins repo.

Installation

Run this command from the root of your project:

tns plugin add nativescript-email

API

To use this plugin you must first require/import it:

TypeScript

import * as email from "nativescript-email";
// or
import { compose } from "nativescript-email";
// or even
import { compose as composeEmail } from "nativescript-email";

JavaScript

var email = require("nativescript-email");

available

TypeScript

  email.available().then((avail: boolean) => {
      console.log("Email available? " + avail);
  })

JavaScript

  email.available().then(function(avail) {
      console.log("Email available? " + avail);
  })

compose

JavaScript

  // let's first create a File object using the tns file module
  var fs = require("file-system");
  var appPath = fs.knownFolders.currentApp().path;
  var logoPath = appPath + "/res/telerik-logo.png";

  email.compose({
      subject: "Yo",
      body: "Hello <strong>dude</strong> :)",
      to: ['[email protected]', '[email protected]'],
      cc: ['[email protected]'],
      bcc: ['[email protected]', '[email protected]'],
      attachments: [
        {
            fileName: 'arrow1.png',
            path: 'base64://iVBORw0KGgoAAAANSUhEUgAAABYAAAAoCAYAAAD6xArmAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAHGlET1QAAAACAAAAAAAAABQAAAAoAAAAFAAAABQAAAB5EsHiAAAAAEVJREFUSA1iYKAimDhxYjwIU9FIBgaQgZMmTfoPwlOmTJGniuHIhlLNxaOGwiNqNEypkwlGk9RokoIUfaM5ijo5Clh9AAAAAP//ksWFvgAAAEFJREFUY5g4cWL8pEmT/oMwiM1ATTBqONbQHA2W0WDBGgJYBUdTy2iwYA0BrILDI7VMmTJFHqv3yBUEBQsIg/QDAJNpcv6v+k1ZAAAAAElFTkSuQmCC',
            mimeType: 'image/png'
        },
        {
            fileName: 'telerik-logo.png',
            path: logoPath,
            mimeType: 'image/png'
      }]
  }).then(
    function() {
      console.log("Email composer closed");
    }, function(err) {
      console.log("Error: " + err);
    });

Full attachment support has been added to 1.3.0 per the example above.

Since 1.4.0 the promise will be rejected in case a file can't be found.

Usage with Angular

Check out this tutorial (YouTube) to learn how to use this plugin in a NativeScript-Angular app.

Known issues

On iOS you can't use the simulator to test the plugin because of an iOS limitation. To prevent a crash this plugin returns false when available is invoked on the iOS sim.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].