Skip to content

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

@strein

Description

@strein

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
        (
            [foobar_unknown@gmail.com] => 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions