Skip to content
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

Store SMTP response code in validation results (pull request) #85

Open
strein opened this issue Aug 19, 2024 · 0 comments
Open

Store SMTP response code in validation results (pull request) #85

strein opened this issue Aug 19, 2024 · 0 comments

Comments

@strein
Copy link

strein commented Aug 19, 2024

Hi,

thank you for your great work!

I've added the option to store the SMTP result code for email addresses that fail validation.

They'll be stored in a new sub-array in the validate() results array like this:

[smtpErrors] => Array
        (
            [[email protected]] => Array
                (
                    [code] => 550
                    [message] => 550-5.1.1 The email account that you tried to reach does not exist. Please try

                )

        )

Feel free to check out my code in the feature/return-smtp-response-code branch of https://github.com/strein/smtp-validate-email.git and let me know if you want me to file a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant