truemail-client
Version, currently 0.2.14 versions
- 0.2.1latestFeb 5, 2024
- 0.2.0not indexedFeb 5, 2024
- 0.1.1not indexedFeb 5, 2024
- 0.1.0not indexedFeb 5, 2024
github.com/truemail-rb/truemail-crystal-client
Truemail web API client library for Crystal
Installation
# Add this to your shard.yml
dependencies:
truemail-client:
github: truemail-rb/truemail-crystal-client
version: ~> 0.2.1Then run:
shards installshard.yml
- Crystal
1.3.2- License
- MIT
- Author
- Vladislav Trotsenko
Dependencies
Development Dependencies
README
truemail-crystal-client shard - Truemail web API client library for Crystal.
Actual and maintainable documentation :books: for developers is living here.
Table of Contents
- Requirements
- Installation
- Usage
- Truemail family
- Contributing
- License
- Code of Conduct
- Credits
- Versioning
- Changelog
Requirements
Crystal 1.3.2+
Installation
- Add the dependency to your
shard.yml:
dependencies:
truemail-client:
github: truemail-rb/truemail-crystal-client
branch: master
- Run
shards install
Usage
require "truemail-client"
To have an access for Truemail::Client you must create configuration instance first as in the example below:
Creating configuration instance
configuration = Truemail::Client::Configuration.new do |config|
# Optional parameter (Boolean). By default it is equal false
config.secure_connection = false
# Required parameter (String). It should be a hostname or an ip address where Truemail server runs
config.host = "example.com"
# Optional parameter (Int32). By default it is equal 9292
config.port = 80
# Required parameter (String). It should be valid Truemail server access token
config.token = "token"
end
Establishing connection with Truemail API
After successful configuration, you can establish connection with Truemail server.
Truemail::Client.validate("admin@bestweb.com.ua", configuration)
=>
{
"date": "2020-05-05 19:30:42 +0200",
"email": "admin@bestweb.com.ua",
"validation_type": "smtp",
"success": true,
"errors": null,
"smtp_debug": null,
"configuration": {
"validation_type_by_domain": null,
"whitelist_validation": false,
"whitelisted_domains": null,
"blacklisted_domains": null,
"smtp_safe_check": false,
"email_pattern": "default gem value",
"smtp_error_body_pattern": "default gem value"
}
}
Truemail::Client.validate always returns JSON data. If something goes wrong you will receive JSON with error details:
{
"truemail_client_error": "error details"
}
Truemail family
All Truemail solutions: https://truemail-rb.org
| Name | Type | Description |
|---|---|---|
| truemail | ruby gem | Configurable framework agnostic plain Ruby email validator, main core |
| truemail server | ruby app | Lightweight rack based web API wrapper for Truemail |
| truemail-rack-docker | docker image | Lightweight rack based web API dockerized image :whale: of Truemail server |
| truemail-ruby-client | ruby gem | Truemail web API client library for Ruby |
| truemail-java-client | java lib | Truemail web API client library for Java |
| truemail-rspec | ruby gem | Truemail configuration and validator RSpec helpers |
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/truemail-rb/truemail-crystal-client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct. Please check the open tickets. Be sure to follow Contributor Code of Conduct below and our Contributing Guidelines.
License
The shard is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the truemail-crystal-client project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
Credits
- The Contributors for code and awesome suggestions
- The Stargazers for showing their support
Versioning
truemail-crystal-client uses Semantic Versioning 2.0.0
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.2.1- Tagged
- Feb 5, 2024
- Commit
e16b5d84e550- Crystal
1.3.2- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/truemail-rb/truemail-crystal-client
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 4
