---
title: How to Get a Domain’s DKIM Key
description: "Use the following function, which works for aaPanel, Cloudron, cPanel, CyberPanel, FastPanel, HestiaCP, InterWorx, ISPConfig, KeyHelp, Mailcow, Mailu, Modoboa, myVesta, Poste, Ploi, SPanel, 20i/StackCP, VestaCP, Virtualmin, Webuzo and WildDuck integrations only [for now](https://trello.com/c/a6H0KeSc/53-show-integrations-spf-and-dns-records), to get a domain's DKIM key and…"
url: "https://wpemailmanager.com/docs/how-to-get-a-domains-dkim-key/"
updated: "2023-05-17"
category: Developers
---

# How to Get a Domain’s DKIM Key

Use the following function, which works for aaPanel, Cloudron, cPanel, CyberPanel, FastPanel, HestiaCP, InterWorx, ISPConfig, KeyHelp, Mailcow, Mailu, Modoboa, myVesta, Poste, Ploi, SPanel, 20i/StackCP, VestaCP, Virtualmin, Webuzo and WildDuck integrations only [for now](https://trello.com/c/a6H0KeSc/53-show-integrations-spf-and-dns-records), to get a domain's DKIM key and ensure that you are using WP Email Manager V 1.0.12+. Please note that this will only work if the domain has an existing DKIM key.

## Function Usage

```
/**
 * Get a domain's DKIM key
 */
$dkim_key = wp_email_manager_get_dkim_key('domain.com');
if( $dkim_key )
{
	// Do Something
}
```
