SpoofMail validates an email by checking the email’s structure, finding the email’s MX-Records and checking that the email has not been generated from a temporary or fake email provider.
The functions provided:
The SpoofMail PHP function takes an email and an optional callback function.
The function also returns a simple Boolean for ‘pass’ or ‘fail’.
The callback contains one argument with an array of failed checks or NULL if the email passed all checks.
sm_verify_email( $email, $callback )
The callback contains two arguments. The first is a simple object containing the ‘pass’ or ‘fail’ status and an array of failed checks.
The second argument contains the entire response object and can mostly be ignored.
Developed by PHP Hosting Experts CatN
- First Release.