tintnaingwinn / email-checker Goto Github PK
View Code? Open in Web Editor NEWLaravel Package To Validate An Email Address Exists Without Sending Email
License: MIT License
Laravel Package To Validate An Email Address Exists Without Sending Email
License: MIT License
Hi, I'm new in laravel php, I dont know whta is the meaning of this...Could you help me? Thanks
` $mxs[$hosts[$n]] = $mxRecords[$n];
}
asort($mxs);
array_push($mxs, $this->domain);
$timeout = $this->max_conn_time/(count($hosts)>0 ? count($hosts) : 1);
// connect to SMTP
while(list($host) = each($mxs))
{
if ($this->socket = @fsockopen($host, $this->port, $errno, $errstr, (float) $timeout))
{
stream_set_timeout($this->socket, $this->max_read_time);
break;
}
}
if ($this->socket)
{
$reply = fread($this->socket, 2082);
preg_match('/^([0-9]{3})/ims', $reply, $matches);
$code = isset($matches[1]) ? $matches[1] : '';`
This is the mail id I have used to check. '[email protected]' but gives error please enter valid email address
Hello. I'm having a problem using the package. Although adding "email_checker" in the rules for validation of the email field, the registration is still accepted when the email is non-existent and the data is registered in the database. The other validation rules: email, require, max, and unique work normally. The installation of the package was done correctly by adding the Facade and the Provider. I would be grateful for a response to the problem. Follow the code of the rule in the Registration Request:
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'email' => 'bail|required|email|max:255|unique:users|email_checker',
'identificador' => 'required|cpf_cnpj|unique:users,identificador',
'password' => [
'confirmed',
'required',
'regex:/[a-zA-Z]/',
'regex:/[0-9]/',
'min:8'
],
'tipo' => 'required|size:1|alpha',
];
}
Hi,
I'm trying to validate emails but i'm getting different result on Windows(Win 10 x64) and Linux(Ubuntu 18.04.5 LTS) system.
[email protected]
[email protected]
[email protected]
On Linux I'm getting all 3 as valid email id and on windows only last one as valid.
In reality only last one is valid email id.
Window is my personal PC and Linux is production server.
Please help, thanks.
HI,
I try to validate the email [email protected], this is my personal email address:
use Tintnaingwin\EmailChecker\Facades\EmailChecker;
dd(EmailChecker::check('[email protected]')); // Always return false
I am using Laravel V6.
Please, help me, thank you
hello, i'm using this email-checker on my controller but always return false
use Tintnaingwin\EmailChecker\Facades\EmailChecker;
public function checkEmail($input)
{
return response()->json(EmailChecker::check($input));
}
i'm looking for your help, thanks
Hi,
We are using this package. it is working well in local and our test and stage domains. But one of our client email not verifying in live server even it was exist. If we check same email in local and test and stage servers it is returning true.
What will be the problem? could you please help on this
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.