-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update examples with correct param name for
emailAddress
(#150)
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ npm install @devmehq/email-validator-js | |
```typescript | ||
import { verifyEmail } from '@devmehq/email-validator-js'; | ||
|
||
const { validFormat, validSmtp, validMx } = await verifyEmail({ mailbox: '[email protected]', verifyMx: true, verifySmtp: true, timeout: 3000 }); | ||
const { validFormat, validSmtp, validMx } = await verifyEmail({ emailAddress: '[email protected]', verifyMx: true, verifySmtp: true, timeout: 3000 }); | ||
// validFormat: true | ||
// validMx: true | ||
// validSmtp: true | ||
|
@@ -64,7 +64,7 @@ const { validFormat, validSmtp, validMx } = await verifyEmail({ mailbox: 'foo@em | |
When a domain does not exist or has no MX records, the domain validation will fail, and the mailbox validation will return `null` because it could not be performed: | ||
|
||
```typescript | ||
const { validFormat, validSmtp, validMx } = await verifyEmail({ mailbox: '[email protected]', verifyMx: true, verifySmtp: true, timeout: 3000 }); | ||
const { validFormat, validSmtp, validMx } = await verifyEmail({ emailAddress: '[email protected]', verifyMx: true, verifySmtp: true, timeout: 3000 }); | ||
// validFormat: true | ||
// validMx: false | ||
// validSmtp: null | ||
|