README.md in truemail-2.3.0 vs README.md in truemail-2.3.1
- old
+ new
@@ -200,14 +200,14 @@
# Optional parameter. Validation of email which contains blacklisted domain always will
# return false. Other validations will not processed even if it was defined in validation_type_for
# It is equal to empty array by default.
config.blacklisted_domains = ['somedomain1.com', 'somedomain2.com']
- # Optional parameter. This option will provide to use custom DNS gateway when Truemail interacts
- # with DNS. If you won't specify nameserver's ports DNS validation layer will use default DNS
- # TCP/UDP port 53. By default Truemail uses DNS gateway from system settings and this option
- # is equal to empty array.
+ # Optional parameter. This option will provide to use custom DNS gateway when Truemail
+ # interacts with DNS. If you won't specify nameserver's ports Truemail will use default
+ # DNS TCP/UDP port 53. By default Truemail uses DNS gateway from system settings
+ # and this option is equal to empty array.
config.dns = ['10.0.0.1', '10.0.0.2:54']
# Optional parameter. This option will provide to use not RFC MX lookup flow.
# It means that MX and Null MX records will be cheked on the DNS validation layer only.
# By default this option is disabled.
@@ -1120,20 +1120,20 @@
"current_host_ip": "127.0.0.1",
"warnings": {
"dns": "A-record of verifier domain not refers to current host ip address", "ptr": "PTR-record does not reference to current verifier domain"
},
"configuration": {
- "validation_type_by_domain": null,
- "whitelist_validation": false,
- "whitelisted_domains": null,
"blacklisted_domains": null,
"dns": null,
+ "email_pattern": "default gem value",
"not_rfc_mx_lookup_flow": false,
+ "smtp_error_body_pattern": "default gem value",
"smtp_fail_fast": false,
"smtp_safe_check": false,
- "email_pattern": "default gem value",
- "smtp_error_body_pattern": "default gem value"
+ "validation_type_by_domain": null,
+ "whitelist_validation": false,
+ "whitelisted_domains": null
}
}
```
#### Validator JSON serializer
@@ -1160,20 +1160,20 @@
"rcptto": "550 5.7.1 No such user!\n"
}
}
],
"configuration": {
- "validation_type_by_domain": null,
- "whitelist_validation": false,
- "whitelisted_domains": null,
"blacklisted_domains": null,
"dns": null,
+ "email_pattern": "default gem value",
"not_rfc_mx_lookup_flow": false,
+ "smtp_error_body_pattern": "default gem value",
"smtp_fail_fast": false,
"smtp_safe_check": false,
- "email_pattern": "default gem value",
- "smtp_error_body_pattern": "default gem value"
+ "validation_type_by_domain": null,
+ "whitelist_validation": false,
+ "whitelisted_domains": null
}
}
```
### Truemail helpers
@@ -1202,20 +1202,20 @@
"current_host_ip": "127.0.0.1",
"warnings": {
"dns": "A-record of verifier domain not refers to current host ip address", "ptr": "PTR-record does not reference to current verifier domain"
},
"configuration": {
- "validation_type_by_domain": null,
- "whitelist_validation": false,
- "whitelisted_domains": null,
"blacklisted_domains": null,
"dns": null,
+ "email_pattern": "default gem value",
"not_rfc_mx_lookup_flow": false,
+ "smtp_error_body_pattern": "default gem value",
"smtp_fail_fast": false,
"smtp_safe_check": false,
- "email_pattern": "default gem value",
- "smtp_error_body_pattern": "default gem value"
+ "validation_type_by_domain": null,
+ "whitelist_validation": false,
+ "whitelisted_domains": null
}
}
Truemail.validate('nonexistent_email@bestweb.com.ua').as_json
@@ -1239,19 +1239,19 @@
"rcptto": "550 5.7.1 No such user!\n"
}
}
],
"configuration": {
- "validation_type_by_domain": null,
- "whitelist_validation": false,
- "whitelisted_domains": null,
"blacklisted_domains": null,
"dns": null,
+ "email_pattern": "default gem value",
"not_rfc_mx_lookup_flow": false,
+ "smtp_error_body_pattern": "default gem value",
"smtp_fail_fast": false,
"smtp_safe_check": false,
- "email_pattern": "default gem value",
- "smtp_error_body_pattern": "default gem value"
+ "validation_type_by_domain": null,
+ "whitelist_validation": false,
+ "whitelisted_domains": null
}
}
```
### Test environment