All Projects → cketti → Emailintentbuilder

cketti / Emailintentbuilder

Licence: apache-2.0
An Android Library for the creation of SendTo Intents with mailto: URI

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Emailintentbuilder

Handle Path Oz
Android Library to handle multiple Uri's(paths) received through Intents.
Stars: ✭ 36 (-78.57%)
Mutual labels:  intent, library
Vmime
VMime Mail Library
Stars: ✭ 218 (+29.76%)
Mutual labels:  library, email
Potato Library
Easy to use Utility library for Android
Stars: ✭ 45 (-73.21%)
Mutual labels:  intent, library
Rust Imap
IMAP client library for Rust
Stars: ✭ 237 (+41.07%)
Mutual labels:  library, email
Intentlogger
Dump intent content into logcat
Stars: ✭ 84 (-50%)
Mutual labels:  intent, library
Holster
A place to keep useful golang functions and small libraries
Stars: ✭ 166 (-1.19%)
Mutual labels:  library
Focusoverlay
Library for creating animated overlays on focused elements
Stars: ✭ 167 (-0.6%)
Mutual labels:  library
Bt
BitTorrent library and client with DHT, magnet links, encryption and more
Stars: ✭ 2,011 (+1097.02%)
Mutual labels:  library
Parliament Svg
Generate parliament charts as virtual-dom SVG
Stars: ✭ 165 (-1.79%)
Mutual labels:  library
Binarypack
The fastest and most memory efficient binary serialization library for .NET Standard 2.1, powered by dynamic IL generation
Stars: ✭ 169 (+0.6%)
Mutual labels:  library
Gooi
LÖVE GUI Library
Stars: ✭ 168 (+0%)
Mutual labels:  library
Rrule
JavaScript library for working with recurrence rules for calendar dates as defined in the iCalendar RFC and more.
Stars: ✭ 2,249 (+1238.69%)
Mutual labels:  library
Foregroundappchecker
Foreground application detection library for android.
Stars: ✭ 167 (-0.6%)
Mutual labels:  library
Mirrordiffkit
Graduation from messy XCTAssertEqual messages.
Stars: ✭ 168 (+0%)
Mutual labels:  library
React Messenger
Chat UX components built with React, inspired by Facebook Messenger
Stars: ✭ 167 (-0.6%)
Mutual labels:  library
Adic
Lightweight dependency injection container for Unity
Stars: ✭ 168 (+0%)
Mutual labels:  library
Cecil
Cecil is a library to inspect, modify and create .NET programs and libraries.
Stars: ✭ 2,112 (+1157.14%)
Mutual labels:  library
Darkart
A binary interface let Chez Scheme use Python, Lua, Ruby etc's library
Stars: ✭ 168 (+0%)
Mutual labels:  library
Logging
Powershell Logging Module
Stars: ✭ 167 (-0.6%)
Mutual labels:  email
Reference Huffman Coding
Clear implementation of Huffman coding for educational purposes in Java, Python, C++.
Stars: ✭ 167 (-0.6%)
Mutual labels:  library

Email Intent Builder

Maven Central

An Android Library for the creation of SendTo Intents with mailto: URI

Read the article Android: Sending Email using Intents if you want to learn what motivated the creation of this library.

Include the library

Add this to your dependencies block in build.gradle:

implementation 'de.cketti.mailto:email-intent-builder:2.0.0'

Usage

Creating a simple email intent is as easy as this:

Intent emailIntent = EmailIntentBuilder.from(activity)
        .to("[email protected]")
        .subject("Feedback")
        .build();

This will build an intent with the action android.intent.action.SENDTO and the data mailto:[email protected]?subject=Feedback.

You can also use EmailIntentBuilder to add a couple of other fields and directly launch the intent:

EmailIntentBuilder.from(activity)
        .to("[email protected]")
        .cc("[email protected]")
        .bcc("[email protected]")
        .subject("Message from an app")
        .body("Some text here")
        .start();

Changelog

Version 2.0.0 (2019-11-26)

  • Use org.jetbrains:annotations for nullability annotations
  • No functional changes

Version 1.0.0 (2015-12-19)

  • Initial release

License

Copyright 2015-2019 cketti

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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].