| » Metadata | » Status |
|---|---|
|
|
| » Description | |
|
The Mail_CheckUser is check email addresses for validity with SMTP commands. qmail,other non-monolithic mail servers and Some spam mail filters often report that a user exists even if it is not so. But network checks of this package is useful for the decrease of the bounced email by the misspelling, server errors etc. You should add SPF record to your domain's DNS configuration. If you don't, response of 5xx might be returned also to the existing address. (e.g hotmail and other) In that case, Your server can't send email to those servers. 1) This will check email address by regex with The Mail_RFC822 package 2) Next, This will send SMTP commands with The Net_SMTP package HELO fqdn # constructor param Mail From: sender@example.com # constructor param RCPT TO: check@example.net 3) Check response code from SMTP server and return true or flase. Default, if response code is 250 or 251, return true. Response code for true can customize. example: $chk = new CheckUser($fqdn, $sender);If you think almost every other situation indicates 'possible' success. You can set response code to return true. example: It will return true when SMTP SEVER connection failed and other temporary error. $chk = new CheckUser($fqdn, $sender);getResponse() method will returun SMTP response information as array. e.g. array(2) { |
|
| » Dependencies | » Links |
|
|
| » Timeline | » Changelog |
|
|