### Install and Activate WPCode Plugin Source: https://wpmailsmtp.com/docs/using-code-snippets This action is prompted when you install your first WP Mail SMTP snippet. It installs and activates the necessary WPCode plugin. ```text Install & Activate WPCode ``` -------------------------------- ### Activate a Code Snippet Source: https://wpmailsmtp.com/docs/using-code-snippets After installing a snippet, toggle the 'Active' option to enable it on your site and click 'Update' to save the changes. ```text Active Update ``` -------------------------------- ### Set Up DKIM Record for SMTP.com Source: https://wpmailsmtp.com/docs/how-to-set-up-the-smtp-com-mailer-in-wp-mail-smtp Configure a TXT record for DKIM authentication with SMTP.com. The Name is 'smtpcomcustomers._domainkey' and the TXT Value should be copied from the SMTP.com onboarding portal. A TTL of 3600 seconds (1 hour) is recommended. ```text Name: smtpcomcustomers._domainkey TXT Value: [copy from onboarding portal] TTL: 3600 seconds or 1 hour ``` -------------------------------- ### Edit an Installed Code Snippet Source: https://wpmailsmtp.com/docs/using-code-snippets To modify an existing snippet, navigate to the Code Snippets tab, click 'Edit Snippet', make your changes in the WPCode editor, and click 'Update'. ```text Edit Snippet Update ``` -------------------------------- ### Enable Email Logging with Constants Source: https://wpmailsmtp.com/docs/how-to-secure-smtp-settings-by-using-constants Configure email logging settings using constants in wp-config.php. Set WPMS_LOGS_ENABLED to true to turn on logging, and WPMS_LOGS_LOG_EMAIL_CONTENT to true to store email content. ```PHP define ( 'WPMS_LOGS_ENABLED', true ); // True turns it on, false turns it off. define ( 'WPMS_LOGS_LOG_EMAIL_CONTENT', true ); // True turns it on and stores email content, false turns it off. define ( 'WPMS_LOGS_LOG_RETENTION_PERIOD', 0 ); // How long email logs should be retained before they are deleted, in seconds. To disable the log retention period and keep logs forever, set to 0. ``` -------------------------------- ### Configure SparkPost Mailer Settings with Constants Source: https://wpmailsmtp.com/docs/how-to-secure-smtp-settings-by-using-constants Use constants in wp-config.php to set your SparkPost API key and domain. This protects these credentials from being edited in the WordPress admin. ```PHP define( 'WPMS_SPARKPOST_API_KEY', 'YOUR_SPARKPOST_API_KEY' ); define( 'WPMS_SPARKPOST_DOMAIN', 'YOUR_SPARKPOST_DOMAIN' ); ``` -------------------------------- ### Configure Zoho Mailer Settings with Constants Source: https://wpmailsmtp.com/docs/how-to-secure-smtp-settings-by-using-constants Secure your Zoho API key and secret key by defining them as constants in wp-config.php. This prevents unauthorized modifications in the WordPress admin. ```PHP define( 'WPMS_ZOHO_API_KEY', 'YOUR_ZOHO_API_KEY' ); define( 'WPMS_ZOHO_SECRET_KEY', 'YOUR_ZOHO_SECRET_KEY' ); ``` -------------------------------- ### Configure Brevo Mailer Settings with Constants Source: https://wpmailsmtp.com/docs/how-to-secure-smtp-settings-by-using-constants Secure your Brevo (formerly Sendinblue) mailer configuration by defining constants for your API key and sender email in wp-config.php. ```PHP define( 'WPMS_BREVO_API_KEY', 'YOUR_BREVO_API_KEY' ); define( 'WPMS_BREVO_SENDER_EMAIL', 'your_email@example.com' ); ```