Maildroid

Additional

Language
Kotlin
Version
0.0.1 (Aug 11, 2019)
Created
Aug 11, 2019
Updated
Aug 11, 2019
Owner
nedimf
Contributor
nedimf
1
Activity
Badge
Generate
Download
Source code
APK file

Advertising

Maildroid



🎉 Maildroid is a small robust android library for sending emails using SMTP server 🎉

Key FeaturesAdd to your projectDocumentationDevelopmentFAQ

Library is using Oracle Java Mail API to handle connections and sending emails.

Key Features

  • Sending emails using SMTP protocol 📨
  • Compatible with all smtp providers 🎉
  • Sending HTML/CSS styled emails 🎨
  • Library is using Java Mail API that is well known as best library for sending emails 🔭

Add to your project

Maildroid is hosted on JitPack and it's quite easy to integrate in to your project. Maildroid requires at least Android API level 19 Android KitKat

How do you want to integrate Maildroid into your project

Gradle

Add this to your root.gradle file

allprojects {
  repositories {
   ...
   maven { url 'https://jitpack.io' }
  }
 }

Add dependency

dependencies {
         implementation 'com.github.nedimf:maildroid:0.0.1'
          }

Maven

Add the JitPack repository to your build file

<repositories>
   <repository>
       <id>jitpack.io</id>
       <url>https://jitpack.io</url>
    </repository>
</repositories>

Add the dependency


<dependency>
     <groupId>com.github.nedimf</groupId>
     <artifactId>simple-java-mail</artifactId>
     <version>Tag</version>
</dependency>

Add to your app

Adding Maildroid to your app is straight forword process. Library is using Builder pattern to achieve flexebilty and easy to read wholesome implementation

  MaildroidX.Builder()
            .smtp("")
            .smtpUsername("")
            .smtpPassword("")
            .smtpAuthentication()
            .port("")
            .type("")
            .to("")
            .from("")
            .subject("")
            .body("")
            .attachment("")
            .onCompleteCallback(object : MaildroidX.onCompleteCallback{
                override fun onSuccess() {
                    //Place for your code when email is sent successfully!
                }
                override fun onFail() {
                   //Place for your code when email is not sent!
                }
            },3000)
            .mail()

Documentation