openemail.tools
इस नेमस्पेस का हर मेथड: उसका सिग्नेचर, उसके पैरामीटर, वह क्या लौटाता है और एक उदाहरण।
मेथड
Checks of the public mail records of any domain, the free tools on the OpenEmail website: its DMARC policy, its BIMI logo and a deliverability report across MX, SPF, DKIM, DMARC and BIMI. They need no scope.
tools.checkDmarc()
Check a domain's DMARC policy
checkDmarc(domain: string, options?: RequestScope): Promise<DmarcReportResource>Reads the domain's DMARC record from public DNS, or the record of the organisational domain it inherits from, and says how strict it is and what is wrong with it, the DMARC checker on the OpenEmail website. stage is missing, invalid, monitor for p=none, quarantine or reject, and issues lists the problems written to be shown to a person.
पैरामीटर
domainstringआवश्यकThe domain to check, such as
acme.com. An email address or a URL is read as its domain, and any public domain works, not only the ones in this workspace.options.signalAbortSignalCancels the request.
options.apiKeystringOverrides the client's API key for this call only.
लौटाता है
DmarcReportResource with domain, record, inheritedFrom, every tag in tags, stage and issues.
उदाहरण
const report = await openemail.tools.checkDmarc('acme.com') console.log(report.stage, report.tags.p, report.issues)टिप्पणियाँ
Needs no scope: any key or access token for the workspace may run it.
A domain that does not read as one is 422
invalid_parameterondomain, and DNS that did not answer is 503unreachable, which is worth retrying.
इनमें भी उपलब्ध
tools.checkBimi()
Check a domain's BIMI logo
checkBimi(domain: string, options?: RequestScope): Promise<BimiReportResource>Reads the domain's BIMI record, fetches the logo it names and checks the DMARC policy beside it, since inboxes draw a logo only at p=quarantine or p=reject, the BIMI checker on the OpenEmail website. status is present, partial when the record is there but something stops inboxes showing the logo, absent or invalid, and issues says why.
पैरामीटर
domainstringआवश्यकThe domain to check, such as
acme.com. An email address or a URL is read as its domain, and any public domain works, not only the ones in this workspace.options.signalAbortSignalCancels the request.
options.apiKeystringOverrides the client's API key for this call only.
लौटाता है
BimiReportResource with record, logoUrl, authorityUrl, logoSvg, logoReachable, dmarcPolicy, dmarcEnforced, status and issues.
उदाहरण
const report = await openemail.tools.checkBimi('acme.com') if (report.status !== 'present') console.log(report.issues)टिप्पणियाँ
Needs no scope: any key or access token for the workspace may run it.
A domain that does not read as one is 422
invalid_parameterondomain, and DNS that did not answer is 503unreachable, which is worth retrying.
इनमें भी उपलब्ध
tools.checkDeliverability()
Check a domain's deliverability
checkDeliverability(domain: string, options?: RequestScope): Promise<DeliverabilityReportResource>Checks the records a receiving mailbox reads before it trusts mail from the domain, the deliverability checker on the OpenEmail website: MX, SPF, DKIM at the selectors its mail provider uses, DMARC and BIMI. Each check says pass, warn, fail or absent with a verdict and notes, and score weighs them into 0 to 100, graded A to F.
पैरामीटर
domainstringआवश्यकThe domain to check, such as
acme.com. An email address or a URL is read as its domain, and any public domain works, not only the ones in this workspace.options.signalAbortSignalCancels the request.
options.apiKeystringOverrides the client's API key for this call only.
लौटाता है
DeliverabilityReportResource with score, grade, provider and checks, each with id, label, status, verdict, record and notes.
उदाहरण
const report = await openemail.tools.checkDeliverability('acme.com') console.log(report.grade, report.score)for (const check of report.checks) console.log(check.id, check.status, check.verdict)टिप्पणियाँ
Needs no scope: any key or access token for the workspace may run it.
A domain that does not read as one is 422
invalid_parameterondomain, and DNS that did not answer is 503unreachable, which is worth retrying.