kamilc / email_verifier Goto Github PK
View Code? Open in Web Editor NEWHelper validation utility for checking if given email address is real.
License: MIT License
Helper validation utility for checking if given email address is real.
License: MIT License
I have tried to use it on heroku and it is not working.But works fine in my local machine.
I am using it inside a model and code of model is below
class User < ActiveRecord::Base
attr_accessible :email
validates_email_realness_of :email
end
Errors in log of heroku application was
Started POST "/publics/check" for 203.129.204.133 at 2013-03-27 07:13:00 +0000 2013-03-27T07:13:00+00:00 app[web.1]: Processing by PublicsController#check as HTML 2013-03-27T07:13:00+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"dzbG3EPTpIHIKELLK/kJkYAz41lqQR37x1klfafXH5Q=", "email"=>"[email protected]", "commit"=>"Submit"} 2013-03-27T07:13:00+00:00 app[web.1]: script/rails: No such file or directory - host -t MX gmail.com 2013-03-27T07:13:00+00:00 app[web.1]: Completed 500 Internal Server Error in 11ms 2013-03-27T07:13:00+00:00 app[web.1]: 2013-03-27T07:13:00+00:00 app[web.1]: NoMethodError (undefined method `scan' for nil:NilClass): 2013-03-27T07:13:00+00:00 app[web.1]: app/controllers/publics_controller.rb:8:in `check'
Maybe use one found at:
http://www.ex-parrot.com/pdw/Mail-RFC822-Address.html
I have configured below, in local development working well. But when deploying to Production can not working.
EmailVerifier.config do |config| config.verifier_email = ENV["EMAIL_USER_NAME"] config.test_mode = Rails.env.test? end
Can you give me advice?
Thank you.
Rainy.
Hi I'd like to use your gem, however I am getting the exception mentioned in the title.
Probably I am doing something wrong, but I am not able to find it.
I have put in bit at the end of application.rb
EmailVerifier.config do |config|
config.verifier_email = "[email protected]"
end
when trying to check any email from console I receive:
EmailVerifier::OutOfMailServersException: Unable to connect to any one of mail servers for ...
I did tried to change the config.verifier_email to my email address, but no lucky.
I am using a MacBook Pro and
ruby 2.0.0p481
gem 'rails', '3.2.18'
Could you help me please?
Your gem is amazing, but in some cases I got this error with a couple of emails
$ EmailVerifier.check("[email protected]")
Dnsruby::DecodeError: limit exceeded
limit = 512, index = 617, len =
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/dnsruby-1.54/lib/Dnsruby/message.rb:1006:in `rescue in get_label'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/dnsruby-1.54/lib/Dnsruby/message.rb:1000:in `get_label'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/dnsruby-1.54/lib/Dnsruby/message.rb:993:in `get_labels'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/dnsruby-1.54/lib/Dnsruby/message.rb:967:in `get_name'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/dnsruby-1.54/lib/Dnsruby/message.rb:1018:in `get_rr'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/dnsruby-1.54/lib/Dnsruby/message.rb:611:in `block (2 levels) in decode'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/dnsruby-1.54/lib/Dnsruby/message.rb:610:in `times'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/dnsruby-1.54/lib/Dnsruby/message.rb:610:in `block in decode'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/dnsruby-1.54/lib/Dnsruby/message.rb:879:in `initialize'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/dnsruby-1.54/lib/Dnsruby/message.rb:600:in `new'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/dnsruby-1.54/lib/Dnsruby/message.rb:600:in `decode'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/dnsruby-1.54/lib/Dnsruby/select_thread.rb:440:in `get_incoming_data'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/dnsruby-1.54/lib/Dnsruby/select_thread.rb:239:in `block in process_ready'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/dnsruby-1.54/lib/Dnsruby/select_thread.rb:230:in `each'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/dnsruby-1.54/lib/Dnsruby/select_thread.rb:230:in `process_ready'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/dnsruby-1.54/lib/Dnsruby/select_thread.rb:208:in `do_select'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/dnsruby-1.54/lib/Dnsruby/select_thread.rb:136:in `block in check_select_thread_synchronized'
I got this message back. How to avoid it?
Client host [103.5.127.46] blocked using zen.spamhaus.org; http://www.spamhaus.org/query/bl?ip=103.5.127.46
If you go this link
http://www.verifyemailaddress.org/
and enter "[email protected]", and click "details," you get a 550, but with this gem, you get a 250. Why are they getting something different? Does this have to do with DKIM or something like that? Here's a screenshot:
I am getting an error that when I try to verify a valid email from crepelocks.com.br,(eg [email protected]) I get NoMailServerException, but this is ocurring because the crepelocks dns was configured in a wrong way, but the email is real and exists. I already send an email to this and it works, and using http://www.verifyemailaddress.org/ the verification says to me that this email is valid.
Hi,
I am getting "NameError: uninitialized constant EmailVerifier" while running this.
EmailVerifier.check("any valid email here")
Please help.
Thanks
In rubygems.org this is shown as the ruby dependency:
Ruby >= 0
However it seems to use ruby 1.9.x hash syntax which is (unfortunately for me) incompatible with 1.8.7.
I have an older app that I haven't yet upgraded the ruby of yet, and can't use your gem.
Looking at the source however, i was able to make small modification to use a local copy just by changing the few places where you use 1.9.x syntax.
It may not be forward-looking, but you may get more users of your gem if you made this small adjustment. Many older apps that are still running might benefit.
Ben.
Hi,
Thanks for the awesome gem... But in some cases it is returning false for correct email ids also.
Do we need to add any additional support to this gem to support latest data ??
If so, kindly let me know...
Thanks,
Mallikarjuna
Support validating even when someone would paste e. g '"Kamil @ endpoint - @ something" [email protected]' to the form field from mail client
Some servers not support many concurrent SMTP connections.
SMTP raised: 421 Too many concurrent SMTP connections from this IP address; please try again later.
until remove all served so EmailVerifier raise: EmailVerifier :: OutOfMailServersException: Unable to connect to any one of ...
Connections are closed by timeout.
RubyGems.org doesn't report a license for your gem. This is because it is not specified in the gemspec of your last release.
via e.g.
spec.license = 'MIT'
# or
spec.licenses = ['MIT', 'GPL-2']
Including a license in your gemspec is an easy way for rubygems.org and other tools to check how your gem is licensed. As you can imagine, scanning your repository for a LICENSE file or parsing the README, and then attempting to identify the license or licenses is much more difficult and more error prone. So, even for projects that already specify a license, including a license in your gemspec is a good practice. See, for example, how rubygems.org uses the gemspec to display the rails gem license.
There is even a License Finder gem to help companies/individuals ensure all gems they use meet their licensing needs. This tool depends on license information being available in the gemspec. This is an important enough issue that even Bundler now generates gems with a default 'MIT' license.
I hope you'll consider specifying a license in your gemspec. If not, please just close the issue with a nice message. In either case, I'll follow up. Thanks for your time!
Appendix:
If you need help choosing a license (sorry, I haven't checked your readme or looked for a license file), GitHub has created a license picker tool. Code without a license specified defaults to 'All rights reserved'-- denying others all rights to use of the code.
Here's a list of the license names I've found and their frequencies
p.s. In case you're wondering how I found you and why I made this issue, it's because I'm collecting stats on gems (I was originally looking for download data) and decided to collect license metadata,too, and make issues for gemspecs not specifying a license as a public service :). See the previous link or my blog post about this project for more information.
Hi, tried to verify people who use "mail.ru" server got the following error:
"EOFError: end of file reached from ~/.rbenv/versions/2.2.3/lib/ruby/2.2.0/net/protocol.rb:153:in `read_nonblock'."
Is there a way to find out the reason?
Steps to reproduce bug:
Using Rails 3.2.14
Thank you very much in advance, love the work you've done.
I was so confused playing with this locally why it was erroring without active support! I looked at the code and saw you were checking if it was defined, and it all looked good, and finally I realized that was done in latest commit and not part of the 0.9 release! Please release the updated version, I might build a gem including this, a Gemfile can point straight at github but another gem can't unless it's published.
I installed and added following code to application.rb
EmailVerifier.config do |config|
config.verifier_email = "[email protected]"
end
but when i tried to use this
EmailVerifier.check("[email protected]")
I'm getting following error
554 5.7.1 ACL dns_rbl; Client host [182.72.244.66] blocked using sa-ip4tset.blagr.emailsrvr.com=127.24.0.2 Spamhaus XBL. Please visit http://www.spamhaus.org/lookup/ for more information on why this message could not be delivered
Help me to resolve this!
First, thank you for the library!
Wrote a program recently to verify quite a large list of addresses (400k+), using this gem. The program runs multiple threads to run through the list more quickly. However it seems with some email servers — AOL/AIM, and ALL Microsoft domains (Hotmail, MSN, Live.com) — they've set some sort of unknown timeout/throttling.
I've managed to get myself blocked from the Microsoft email family of servers, as EmailVerifier is giving me this repeatedly:
550 SC-002 (COL004-MC5F35) Unfortunately, messages from [MY IP] weren't sent.
Please contact your Internet service provider since part of their network is on our block list.
You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
I think a possible way around this would be to round-robin each request through a list of SOCKS proxy IPs, but see no possible way to do that with Net::SMTP.
Anyone else of the mind that this should be a possibility, using a service like ProxyBonanza?
It does not work with fake yahoo email
EmailVerifier.check("[email protected]") # => return true
Hi there,
I'm getting the error:
Validation failed: Email translation missing: en.errors.messages.email_verifier.exception
For all valid email addresses on the att.net domain. Does the repository still get maintained, would you like me to investigate this myself and make a pull request?
Using this email_verifier to verify an email that uses a company domain name causes an out of mail server error. So when a user puts in [my-name]@[my-company].com, they get the "Email appears to point at a dead mail server" error message. This shouldn't happen since it is a real, actively used account.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.