Skip to content

Commit

Permalink
Update examples with correct param name for emailAddress (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 authored Sep 27, 2023
1 parent fc9dd1f commit 4ed0b72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4ed0b72

Please sign in to comment.