Coder Social home page Coder Social logo

dereknguyen269 / email_detected Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 5.0 21 KB

[Ruby Gem] Email Detected is a simple tool for verifying an email address exists. It's free and quite easy to use ๐Ÿ˜„ .

License: MIT License

Ruby 98.81% Shell 1.19%
checking-email email-checker email-detected email-verification ruby-gem

email_detected's Introduction

๐Ÿ‘‹ Hello there! I'm Derek

page views GitHub followers Awesome

dereknguyen269
  • ๐Ÿ  I'm currently living at HCM City, Vietnam ๐Ÿ‡ป๐Ÿ‡ณ.
  • ๐Ÿ’ป I'm currently working as a Software Engineer.
  • ๐ŸŽฏ I'm currently working on my pet projects.
  • ๐ŸŽฎ I love Dota 2.
  • โ˜• I'm coffeer.

A little more about me...

CONST DEREK = {
  pronouns: "He" | "him",
  backend: ["Ruby", "Nodejs", "Go"],
  frontend: ["HTML", "Javascript", "ReactJs", "CSS"],
  database: ["Postgresql", "mySQL", "Redis"],
  "cloud-server": ["AWS", "Gcloud", "DigitalOcean", "Heroku"],
  architecture: ["microservices", "event-driven", "design system pattern"],
  challenge: "I am doing All-In-One Toolbox for Developers. It's Muerta Toolbox."
}

I love connecting with different people so if you want to say hi, I'll be happy to meet you more! :)


email_detected's People

Contributors

codacy-badger avatar derek-dlvr avatar dereknguyen269 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

email_detected's Issues

Doesnt work

Throws: Errno::ECONNREFUSED (Connection refused - connect(2) for nil port 25):

Doesnt work on Production environment: Need help

Hi all,
I installed this gem and tested in my local development machine and it works great!
EmailDetected.exist?(<valid_email>)
{:status=>true, :message=>"The email address has already been registered."}
EmailDetected.exist?(<invalid_email>)
{:status=>false, :message=>"Requested action not taken:, mailbox unavailable"}

But the same changes when I deployed to my production machine, Ubuntu 15.10 (GNU/Linux 4.2.0-25-generic x86_64), it doesn't seem to work. In other words, for almost every email input which I give, it always results in :
{:status=>true, :message=>"The email address has already been registered."}

Here are the changes which I did:
I added the gem to my gemfile:
gem 'email_detected'
and ran bundle install

And then in the app/models/user.rb, I added the below line
validates_exist_email_of :email

Finally in the config/initializers, I created a new file called email_validator.rb and pasted the below lines of code:

EmailDetected.config do |config|
  config.verifier_email = "[email protected]"
end 

Any help would be greatly appreciated!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.