Giter Site home page Giter Site logo

adellahlou / smtpapi-java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sendgrid/smtpapi-java

0.0 3.0 0.0 285 KB

It's Hacktoberfest!! SendGrid is giving out shirts if you make pull requests!

Home Page: https://dx.sendgrid.com/hacktoberfest

License: MIT License

PHP 8.57% Shell 4.58% Java 86.85%

smtpapi-java's Introduction

SendGrid Logo

BuildStatus Email Notifications Badge Twitter Follow GitHub contributors MIT licensed

This module allows you to build SendGrid's SMTP API headers with simplicity.

Announcements

All updates to this module is documented in our CHANGELOG.

Table of Contents

Installation

Prerequisites

  • Java version Oracle JDK 7, 8 or OpenJDK 7
  • The SendGrid service, starting at the free level

Install Package

Choose your installation method - Maven w/ Gradle (recommended) or Jar file.

Install Maven w/ Gradle

...
dependencies {
  ...
  compile 'com.sendgrid:smtpapi-java:1.2.0'
}

repositories {
  mavenCentral()
}
...

Then import the library - in the file appropriate to your Java project.

import com.sendgrid.smtpapi.SMTPAPI;

Install with Jar File

You can just drop the jar file in. It's a fat jar - it has all the dependencies built in.

smtpapi-java.jar

Environment Variable

Update the development environment with your SENDGRID_API_KEY, for example:

echo "export SENDGRID_API_KEY='YOUR_API_KEY'" > sendgrid.env
echo "sendgrid.env" >> .gitignore
source ./sendgrid.env

Dependencies

Quick Start

import com.sendgrid.smtpapi.SMTPAPI;

public class Example {
  public static void main(String[] args) {
    SMTPAPI header = new SMTPAPI();
    header.addTo("[email protected]");
    String headers = header.jsonString();
    System.out.println(headers);
  }
}

Usage

Roadmap

If you are interested in the future direction of this project, please take a look at our milestones. We would love to hear your feedback.

How to Contribute

We encourage contribution to our projects, please see our CONTRIBUTING guide for details.

Quick links:

About

smtpapi-java is guided and supported by the SendGrid Developer Experience Team.

smtpapi-java is maintained and funded by SendGrid, Inc. The names and logos for smtpapi-java are trademarks of SendGrid, Inc.

License

The MIT License (MIT)

smtpapi-java's People

Contributors

motdotla avatar thinkingserious avatar awwa avatar thepriefy avatar eddiezane avatar pushkyn avatar krenfro avatar mptap avatar ciceropablo avatar rzats avatar heitortsergent avatar joe94 avatar graph1994 avatar pjhampton avatar gr8shivam avatar whitneyrosenberg avatar

Watchers

James Cloos avatar Adel Lahlou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.