Maslosoft Mangan API
Class EmailValidator
EmailValidator
- Maslosoft\Mangan\Validators\BuiltIn\EmailValidator implements Maslosoft\Mangan\Interfaces\Validators\ValidatorInterface uses Maslosoft\Mangan\Validators\Traits\AllowEmpty, Maslosoft\Mangan\Validators\Traits\Messages, Maslosoft\Mangan\Validators\Traits\OnScenario, Maslosoft\Mangan\Validators\Traits\Safe, Maslosoft\Mangan\Validators\Traits\SkipOnError
 
Author: Piotr Maselkowski
Located at Validators/BuiltIn/EmailValidator.php
Methods summary
				 public 
				
				
				
			 | 
			
Methods inherited from Maslosoft\Mangan\Interfaces\Validators\ValidatorInterface
Methods used from Maslosoft\Mangan\Validators\Traits\Messages
Constants summary
string | 
				
					
						EmailPattern
					
					 | 
				
					 
						#
						 
				'/^[\p{L}0-9!#$%&\'*+\\/=?^_`{|}~-]+(?:\.[\p{L}0-9!#$%&\'*+\\/=?^_`{|}~-]+)*@(?:[\p{L}0-9](?:[\p{L}0-9-]*[\p{L}0-9])?\.)+[\p{L}0-9](?:[\p{L}0-9-]*[\p{L}0-9])?$/u'
					 | 
			
string | 
				
					
						FullEmailPattern
					
					 | 
				
					 
						#
						 
				'/^[^@]*<[\p{L}0-9!#$%&\'*+\\/=?^_`{|}~-]+(?:\\.[\p{L}0-9!#$%&\'*+\\/=?^_`{|}~-]+)*@(?:[\p{L}0-9](?:[\p{L}0-9-]*[\p{L}0-9])?\\.)+[\p{L}0-9](?:[\p{L}0-9-]*[\p{L}0-9])?>$/u'
					 | 
			
Constants inherited from Maslosoft\Mangan\Interfaces\Validators\ValidatorInterface
Properties summary
				public  
				string
			 | 
			
					$pattern
				 the regular expression used to validate the attribute value.  | 
			
				 
					#
					 
			self::EmailPattern
				 | 
		
				public  
				boolean
			 | 
			
					$checkMX
				 whether to check the MX record for the email address. Defaults to false. To enable it, you need to make sure the PHP function 'checkdnsrr' exists in your PHP installation. Please note that this check may fail due to temporary problems even if email is deliverable.  | 
			
				 
					#
					 
			false
				 | 
		
				public  
				boolean
			 | 
			
					$checkPort
				 whether to check port 25 for the email address. Defaults to false. To enable it, ensure that the PHP functions 'dns_get_record' and 'fsockopen' are available in your PHP installation. Please note that this check may fail due to temporary problems even if email is deliverable.  | 
			
				 
					#
					 
			false
				 | 
		
				public  
				string
			 | 
			
					$msgValid
				 | 
			
				 
					#
					 
			''
				 | 
		
				public  
				string
			 | 
			
					$msgDomain
				 | 
			
				 
					#
					 
			''
				 | 
		
				public  
				string
			 | 
			
					$msgPort
				 | 
			
				 
					#
					 
			''
				 |