truemail-rb/truemail — reverse-engineered prompt
Reverse engineered prompt
Build me a Ruby gem called Truemail that helps people check whether an email address looks right, has a real mail server, and can probably receive mail.
I want it to work in any Ruby app, with a simple setup where I provide a verifier email and choose how strict the check should be. It should support basic format checking, DNS and MX checks, SMTP verification, whitelist and blacklist rules for emails and domains, blocked MX IPs, timeouts, retries, and international email addresses. Please include a clean result object that says if the email is valid and why it failed, plus JSON output for apps that need it.
Also add useful extras from the docs, like event logging, simple SMTP debugging, and host audit checks for IP, DNS, and PTR issues. Include tests, examples in the README, and make the public API easy, like configure once, then call validate or valid.
Want more depth? Deep Reverse