An open API service indexing awesome lists of open source software.

https://github.com/mehcode/emailx-rs

Robust email syntax and deliverability validation.
https://github.com/mehcode/emailx-rs

Last synced: about 2 months ago
JSON representation

Robust email syntax and deliverability validation.

Awesome Lists containing this project

README

          

# emailx
![Rust](https://img.shields.io/badge/rust-stable-brightgreen.svg)
[![Build Status](https://travis-ci.org/mehcode/emailx-rs.svg?branch=master)](https://travis-ci.org/mehcode/emailx-rs)
[![Crates.io](https://img.shields.io/crates/d/emailx.svg)](https://crates.io/crates/emailx)
[![Docs.rs](https://docs.rs/emailx/badge.svg)](https://docs.rs/emailx)
> Robust email syntax and deliverability validation for Rust.

## Usage

```toml
[dependencies]
emailx = "0.1"
```

```rust
use emailx;

// [...]

emailx::validate("user@domain").map(|is_valid| {
// Checks against a very simple regex
// Checks for at least 1 MX record
})
```

## License

This project is licensed under either of

* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
http://opensource.org/licenses/MIT)

at your option.

### Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in futures-rs by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.