Skip to content

v0.1.0

Compare
Choose a tag to compare
@bestwebua bestwebua released this 05 May 17:37
· 13 commits to develop since this release
1a1252c

First version of Truemail Crystal client.

require "truemail-client"

configuration = Truemail::Client::Configuration.new do |config|
  config.secure_connection = false
  config.host = "example.com"
  config.port = 80
  config.token = "token"
end

Truemail::Client.validate("[email protected]", configuration)

=>

{
  "date": "2020-05-05 19:30:42 +0200",
  "email": "[email protected]",
  "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"
  }
}