GithubHelp home page GithubHelp logo

isabella232 / niosmtpclient Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hubspot/niosmtpclient

0.0 0.0 0.0 716 KB

Smtp Client based on Netty

License: Apache License 2.0

Shell 0.31% Java 99.69%

niosmtpclient's Introduction

NioSmtpClient Build Status

High performance SMTP client in Java based on Netty. This client is well tested and heavily used at HubSpot.

Maven Dependency

<dependency>
  <groupId>com.hubspot</groupId>
  <artifactId>NioSmtpClient</artifactId>
  <version>1.1.0</version>
</dependency>

Features

  • High performance, designed to handle many concurrent connections
  • Supports TLS, pipelining, chunking, SIZE, SMTPUTF8, and other ESMTP RFCs
  • Send from specific IP addresses
  • Optionally keeps connections alive to send subsequent emails
  • Parses the EHLO response and chooses the most-efficient sending method
  • Interceptor support to modify or instrument commands
  • Comprehensive unit and integration tests

Dependencies

This project depends on Java8, Netty, and Guava.

Java Docs

See http://github.hubspot.com/NioSmtpClient/1.0.0/

Notes For Developers

  • NEVER execute blocking commands on an eventloop thread (i.e. CountDownLatch.await or Future.get)
    • Calls out to unknown functions (i.e. callbacks or event listeners) should always be done on isolated thread pools.
    • Slow but not necessarily blocking operations should also be avoided
  • Attempt to avoid doing long running tasks on event loop threads
  • Use new as sparingly as possible to avoid creating garbage:
    • Share objects when possible
    • Use netty bytebuf allocators when possible
    • Use netty recyclers for objects that can be recycled.

License

Apache 2.0

niosmtpclient's People

Contributors

axiak avatar hs-jenkins-bot avatar jhaber avatar mcobrien avatar stevie400 avatar zklapow 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.