-
-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verify connection before register #335
Comments
Hi @EmmCamp , I don't see an easy way to find the correct domain name and port of any given email address. The port doesn't has to be However you could try to use the associated mx record and hope for default ports and / or some nice internal service forwarding. Some providers use the same domain for smtp and imap communication - if that's the case, the following could provide the information you are looking for: $domain = "somedomain.com";
dns_get_mx($domain, $dns_get_mx);
getmxrr($domain, $getmxrr);
$dns_get_record = dns_get_record($domain, DNS_MX);
var_dump($dns_get_mx);
var_dump($getmxrr);
var_dump($dns_get_record); Best regards & happy coding, |
Sorry for not explaining enough. I just want to see a way to check the authentication of the IMAP user before saving it to the database. since I want to store several emails to process the emails of each account automatically I greatly appreciate the time you have to help me. |
Ah I see :) In that case, your provide code logic looks fine to me. Do you receive any exceptions or is the authentication not failing as expected? I'm not sure what kind of issue you are facing, or which behavior isn't working as expected. Best regards & happy coding, |
Hello, I'm trying to store IMAP accounts in a database, but I can't find a way to verify that the accounts are real before registering them in the database.
This is the closest I've gotten
(excuse my translator English)
The text was updated successfully, but these errors were encountered: