Skip to content

Commit 4de8cb2

Browse files
authored
improve readme
1 parent e0fe717 commit 4de8cb2

File tree

1 file changed

+68
-200
lines changed

1 file changed

+68
-200
lines changed

README.md

Lines changed: 68 additions & 200 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,71 @@ An API key is required for this module to function.
3030
Go to https://www.mailboxvalidator.com/plans#api to sign up for FREE API plan and you'll be given an API key.
3131

3232

33-
Usage for validating emails
33+
Functions
34+
=========
35+
36+
## SingleValidation (api_key)
37+
38+
Creates a new instance of the MailboxValidator object with the API key.
39+
40+
## ValidateEmail (email_address)
41+
42+
Performs email validation on the supplied email address.
43+
44+
## Return Fields
45+
46+
| Field Name | Description |
47+
|-----------|------------|
48+
| email_address | The input email address. |
49+
| domain | The domain of the email address. |
50+
| is_free | Whether the email address is from a free email provider like Gmail or Hotmail. Return values: True, False |
51+
| is_syntax | Whether the email address is syntactically correct. Return values: True, False |
52+
| is_domain | Whether the email address has a valid MX record in its DNS entries. Return values: True, False, -   (- means not applicable) |
53+
| is_smtp | Whether the mail servers specified in the MX records are responding to connections. Return values: True, False, -   (- means not applicable) |
54+
| is_verified | Whether the mail server confirms that the email address actually exist. Return values: True, False, -   (- means not applicable) |
55+
| is_server_down | Whether the mail server is currently down or unresponsive. Return values: True, False, -   (- means not applicable) |
56+
| is_greylisted | Whether the mail server employs greylisting where an email has to be sent a second time at a later time. Return values: True, False, -   (- means not applicable) |
57+
| is_disposable | Whether the email address is a temporary one from a disposable email provider. Return values: True, False, -   (- means not applicable) |
58+
| is_suppressed | Whether the email address is in our blacklist. Return values: True, False, -   (- means not applicable) |
59+
| is_role | Whether the email address is a role-based email address like [email protected] or [email protected]. Return values: True, False, -   (- means not applicable) |
60+
| is_high_risk | Whether the email address contains high risk keywords. Return values: True, False, -   (- means not applicable) |
61+
| is_catchall | Whether the email address is a catch-all address. Return values: True, False, Unknown, -   (- means not applicable) |
62+
| mailboxvalidator_score | Email address reputation score. Score > 0.70 means good; score > 0.40 means fair; score <= 0.40 means poor. |
63+
| time_taken | The time taken to get the results in seconds. |
64+
| status | Whether our system think the email address is valid based on all the previous fields. Return values: True, False |
65+
| credits_available | The number of credits left to perform validations. |
66+
| error_code | The error code if there is any error. See error table in the below section. |
67+
| error_message | The error message if there is any error. See error table in the below section. |
68+
69+
## DisposableEmail (email_address)
70+
71+
Check if the supplied email address is from a disposable email provider.
72+
73+
## Return Fields
74+
75+
| Field Name | Description |
76+
|-----------|------------|
77+
| email_address | The input email address. |
78+
| is_disposable | Whether the email address is a temporary one from a disposable email provider. Return values: True, False |
79+
| credits_available | The number of credits left to perform validations. |
80+
| error_code | The error code if there is any error. See error table in the below section. |
81+
| error_message | The error message if there is any error. See error table in the below section. |
82+
83+
## FreeEmail (email_address)
84+
85+
Check if the supplied email address is from a free email provider.
86+
87+
## Return Fields
88+
89+
| Field Name | Description |
90+
|-----------|------------|
91+
| email_address | The input email address. |
92+
| is_free | Whether the email address is from a free email provider like Gmail or Hotmail. Return values: True, False |
93+
| credits_available | The number of credits left to perform validations. |
94+
| error_code | The error code if there is any error. See error table in the below section. |
95+
| error_message | The error message if there is any error. See error table below. |
96+
97+
Sample codes to validate email
3498
===========================
3599

36100
```php
@@ -73,130 +137,8 @@ else {
73137
?>
74138
```
75139

76-
Functions
77-
=========
78-
79-
### SingleValidation(api_key)
80-
81-
Creates a new instance of the MailboxValidator object with the API key.
82-
83-
### ValidateEmail(email_address)
84-
85-
Performs email validation on the supplied email address.
86-
87-
Result Fields
88-
=============
89-
90-
### email_address
91-
92-
The input email address.
93-
94-
### domain
95-
96-
The domain of the email address.
97-
98-
### is_free
99-
100-
Whether the email address is from a free email provider like Gmail or Hotmail.
101-
102-
Return values: True, False
103-
104-
### is_syntax
105-
106-
Whether the email address is syntactically correct.
107-
108-
Return values: True, False
109-
110-
### is_domain
111-
112-
Whether the email address has a valid MX record in its DNS entries.
113-
114-
Return values: True, False, -&nbsp;&nbsp;&nbsp;(- means not applicable)
115-
116-
### is_smtp
117-
118-
Whether the mail servers specified in the MX records are responding to connections.
119-
120-
Return values: True, False, -&nbsp;&nbsp;&nbsp;(- means not applicable)
121-
122-
### is_verified
123-
124-
Whether the mail server confirms that the email address actually exist.
125-
126-
Return values: True, False, -&nbsp;&nbsp;&nbsp;(- means not applicable)
127-
128-
### is_server_down
129-
130-
Whether the mail server is currently down or unresponsive.
131-
132-
Return values: True, False, -&nbsp;&nbsp;&nbsp;(- means not applicable)
133-
134-
### is_greylisted
135-
136-
Whether the mail server employs greylisting where an email has to be sent a second time at a later time.
137-
138-
Return values: True, False, -&nbsp;&nbsp;&nbsp;(- means not applicable)
139-
140-
### is_disposable
141-
142-
Whether the email address is a temporary one from a disposable email provider.
143-
144-
Return values: True, False, -&nbsp;&nbsp;&nbsp;(- means not applicable)
145-
146-
### is_suppressed
147-
148-
Whether the email address is in our blacklist.
149-
150-
Return values: True, False, -&nbsp;&nbsp;&nbsp;(- means not applicable)
151-
152-
### is_role
153-
154-
Whether the email address is a role-based email address like [email protected] or [email protected].
155-
156-
Return values: True, False, -&nbsp;&nbsp;&nbsp;(- means not applicable)
157-
158-
### is_high_risk
159-
160-
Whether the email address contains high risk keywords.
161140

162-
Return values: True, False, -&nbsp;&nbsp;&nbsp;(- means not applicable)
163-
164-
### is_catchall
165-
166-
Whether the email address is a catch-all address.
167-
168-
Return values: True, False, Unknown, -&nbsp;&nbsp;&nbsp;(- means not applicable)
169-
170-
### mailboxvalidator_score
171-
172-
Email address reputation score.
173-
174-
Score > 0.70 means good; score > 0.40 means fair; score <= 0.40 means poor.
175-
176-
### time_taken
177-
178-
The time taken to get the results in seconds.
179-
180-
### status
181-
182-
Whether our system think the email address is valid based on all the previous fields.
183-
184-
Return values: True, False
185-
186-
### credits_available
187-
188-
The number of credits left to perform validations.
189-
190-
### error_code
191-
192-
The error code if there is any error. See error table below.
193-
194-
### error_message
195-
196-
The error message if there is any error. See error table below.
197-
198-
199-
Usage for checking if an email is from a disposable email provider
141+
Sample codes to check if an email is from a disposable email provider
200142
==================================================================
201143

202144
```php
@@ -224,44 +166,7 @@ else {
224166
?>
225167
```
226168

227-
Functions
228-
=========
229-
230-
### SingleValidation(api_key)
231-
232-
Creates a new instance of the MailboxValidator object with the API key.
233-
234-
### DisposableEmail(email_address)
235-
236-
Check if the supplied email address is from a disposable email provider.
237-
238-
Result Fields
239-
=============
240-
241-
### email_address
242-
243-
The input email address.
244-
245-
### is_disposable
246-
247-
Whether the email address is a temporary one from a disposable email provider.
248-
249-
Return values: True, False
250-
251-
### credits_available
252-
253-
The number of credits left to perform validations.
254-
255-
### error_code
256-
257-
The error code if there is any error. See error table below.
258-
259-
### error_message
260-
261-
The error message if there is any error. See error table below.
262-
263-
264-
Usage for checking if an email is from a free email provider
169+
Sample codes to check if an email is from a free email provider
265170
============================================================
266171

267172
```php
@@ -289,43 +194,6 @@ else {
289194
?>
290195
```
291196

292-
Functions
293-
=========
294-
295-
### SingleValidation(api_key)
296-
297-
Creates a new instance of the MailboxValidator object with the API key.
298-
299-
### FreeEmail(email_address)
300-
301-
Check if the supplied email address is from a free email provider.
302-
303-
Result Fields
304-
=============
305-
306-
### email_address
307-
308-
The input email address.
309-
310-
### is_free
311-
312-
Whether the email address is from a free email provider like Gmail or Hotmail.
313-
314-
Return values: True, False
315-
316-
### credits_available
317-
318-
The number of credits left to perform validations.
319-
320-
### error_code
321-
322-
The error code if there is any error. See error table below.
323-
324-
### error_message
325-
326-
The error message if there is any error. See error table below.
327-
328-
329197
Errors
330198
======
331199

@@ -341,4 +209,4 @@ Errors
341209
Copyright
342210
=========
343211

344-
Copyright (C) 2018 by MailboxValidator.com, [email protected]
212+
Copyright(C) 2018-2020 by MailboxValidator.com.

0 commit comments

Comments
 (0)