dionkeldei/verifymail

There is no license information available for the latest version (v1.0) of this package.

Package to verify if email is real

v1.0 2020-06-17 23:08 UTC

This package is not auto-updated.

Last update: 2024-09-21 17:31:36 UTC


README

Package to verify if email address is real

Initialize

Start the MailVerify object with the language you want the messages $mail = new mailVerify('en'); // English $mail = new mailVerify('es'); // Spanish $mail = new mailVerify; // Default language (Spanish)

methods

Checks if the email address format is correct: $mail->verify_formatting($emailString)

Checks if the email address is not coming from a public server (hotmail, gmail, live..): $mail->isGeneric($emailString);

Checks if the email address is coming from a existing domain: $mail->verify_domain($emailString);

Checks if the email is a not a no-reply email (sales, office, admin): $mail->isNoReply($emailString);

Do all the above methods: $mail->check_email($emailString);

Response

Return an object: success: true or false message: text describing the problem ( if success = true, message is empty '')