Comments (8)
Is it possible to access Debug object?
from py3-validate-email.
i am also interested to know the above error handling , since my code not able to understand the error code for block ip
from py3-validate-email.
@voxvici you just have to simply use the validate_email_or_fail()
function, which will raise an exception that you catch and the error message will be in the exception arguments.
from py3-validate-email.
@manojr2k @voxvici Out of curiosity, may I ask what you would consider the best behavior in the case of such an "Access denied" (or other messages about blacklisting or similar issues)?
Would it be sufficient if the result of the function was just None
like in other cases where there is no verification possible (like mail server down, greylisting etc), and you can look at the debug log what was the reason for not being able to give a clear result? Or would you still need access to the error messages to programmatically react different to the various reasons that can lead to a None
result? Or would you think an additional exception should be introduced saying "you're blacklisted"?
from py3-validate-email.
from py3-validate-email.
any update reinhard ?
from py3-validate-email.
@manojr2k sorry I don't think that I will have an implementation proposal in short time, I need to think more about this, but your feedback is appreciated as input for that.
from py3-validate-email.
@reinhard-mueller
apologizes for not answering been busy with work, I've found a workaround solution for the blacklist issue ideally a blacklist exception but I've read some of the @karolyi comments before and he was talking it's hard to know when the server actually is blacklisted? if I remember correctly. It would be nice to have an additional exception due to logging and knowing what is internally happening without having to access debug
EDIT right now I've seen the "e.error_messages will be a list of error messages" comment on one of the issues, missed that one. Great work and thank you for answering to issue and updating the module
from py3-validate-email.
Related Issues (20)
- waiting for update HOT 2
- Idea how to clean up the parameter list of validate_email[_or_fail]
- [enhancement] Use real email account and Port 465/587 HOT 8
- [BUG] I got the AttributeError: 'SMTP' object has no attribute 'sock' when I run the validate_email() HOT 7
- Outdated dependencies HOT 4
- Suggestions about the validation HOT 2
- Error installing this package HOT 2
- Not able to verify my own gmail HOT 3
- Question , On IP being blacklisted HOT 1
- All the Email passed come True HOT 5
- [SUGGESTION] idna dependency HOT 4
- SSL Verification Error during Installation Routine on macOS
- password for smtp_from_address HOT 1
- AttributeError: 'RRset' object has no attribute 'processing_order' HOT 7
- pip install py3-validate-email doesn't seem to work for me HOT 2
- validate_email always returns None HOT 1
- SMTP validation raises SSLError with message DH_KEY_TOO_SMALL HOT 13
- [BUG] Greylisting leads to False despite email address exists HOT 2
- Problem with GMAIL checking HOT 3
- [BUG]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py3-validate-email.