Subject: | By this code i am able to validate... |
Summary: | Package rating comment |
Messages: | 6 |
Author: | icert glob |
Date: | 2023-04-06 07:34:31 |
|
|
|
icert glob rated this package as follows:
Utility: | Not sure |
Consistency: | Good |
Examples: | Good |
|
icert glob - 2023-04-06 07:34:31
By this code i am able to validate only domain, not validate whole email...
Manuel Lemos - 2023-04-06 08:00:03 - In reply to message 1 from icert glob
Hello,
Thank you for the feedback.
This class can simulate a delivery to a specific mailbox. This allows checking if the email server of the email address that you want to validate would accept a message for that email address.
There are two details:
1. This class needs to attempt to connect to port 25 of the email server that will receive messages to simulate message delivery. If your hosting company blocks port 25, this method checks if the email address cannot be used. In this case, I suggest changing to another hosting company if you want to use this method.
2. The validation methods that this class can perform are more to catch common user mistakes when they enter an email address, like, for instance, typing someaddress@gmial.com instead of someaddress@gmail.com .
Suppose you want to use a definite email validation message. In that case, I suggest you send an email message with a link that uses a secret code you store in a database table to associate the email address with the code.
When the user receives the message, the user may click on the link that makes the user's browser go to a page that you can handle with a PHP script that checks if the code in the connection matches the email address you want to validate.
I suggest you use the methods provided in this class with the email message and link validation method.
icert glob - 2023-04-07 07:08:57 - In reply to message 2 from Manuel Lemos
port 25 is enabled still class not working to validate email
Manuel Lemos - 2023-04-07 18:07:34 - In reply to message 3 from icert glob
Hello,
As I explained, the class does part of the validation process. You need to do also the opt-in validation which is about sending a message with a link with a validation code.
Just try to be more specific and tell more details about your problem if you need more help.
icert glob - 2023-04-11 03:47:27 - In reply to message 4 from Manuel Lemos
emails does not existed those emails also validate successfully existed, actually only existed mails should be validate but non-existed emails also giving result as existed.
Manuel Lemos - 2023-04-11 05:01:44 - In reply to message 5 from icert glob
Hello,
When the class says it exists, it passes several verification checks.
The email server of a given email address will accept the message, but if the user deleted his account, any message you send to that address would bounce after some time, maybe a few days. It depends on what the server is configured to do.
I suggested sending a message to the email address you want to check to test if the address exists.
This is just the way email servers work. We do not control email servers. What we can do is explain to you how it works in practice.
Read this article to understand better the validation methods:
phpclasses.org/blog/package/13/post ...
|