Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    WordPress Email Not Sending? SMTP and Deliverability Fixer

    by Saizul Amin

    1

    Fix WordPress email delivery by diagnosing PHP mail issues, resolving plugin conflicts, and setting up authenticated SMTP.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    WordPress Email Not Sending? SMTP and Deliverability Fixer

    WordPress Email Not Sending? SMTP and Deliverability Fixer

    Example session with this skill installed

    My WordPress site's contact form and order emails go to spam or never arrive. Here are a sample email, my plugin list and wp-config.php. What's wrong?

    • Read your context and instructions
    • Compiled the wordpress email not

    I ran the bundled script from the wordpress-smtp-deliverability skill and reviewed its findings.

    Demo data: this is the real, unedited output of the skill's script on the test fixture that ships with its source repo.

    Script output

    [HIGH  ] plugins: several mail plugins active: WP Mail SMTP, Post SMTP  -> keep one; each replaces wp_mail()/PHPMailer and the last one loaded wins unpredictably
    [HIGH  ] plugins: 'disable-emails' is active: it blocks outgoing email  -> deactivate it
    [HIGH  ] transport: sent through PHP mail()/local sendmail on the web server  -> route wp_mail() through authenticated SMTP or your ESP's API with a mail plugin
    [HIGH  ] auth: dkim=missing  -> enable DKIM for your domain at the ESP and publish its key
    [HIGH  ] auth: dmarc=fail  -> publish DMARC and make SPF or DKIM align with the From domain
    [MEDIUM] sender: default sender wordpress@example.com  -> set a real From on your domain (e.g. no-reply@ or hello@) in the mail plugin and force it
    [MEDIUM] alignment: Return-Path www-data@vps123.localdomain is not on the From domain  -> fine if DKIM aligns; otherwise set a custom Return-Path/bounce domain at your ESP
    [MEDIUM] auth: spf=softfail  -> add the mail plugin's SMTP/ESP include to the SPF record (see dns-auth-audit)
    [MEDIUM] format: missing Message-ID  -> use a mail plugin; raw mail() often omits it
    [LOW   ] wp-config: WPMS_ON is true but WPMS_MAILER is not set  -> define WPMS_MAILER
    [INFO  ] wp-config: mail credentials defined as constants (WPMS_SMTP_PASS): good, kept out of the database  -> keep wp-config.php at mode 600/640, outside version control; values are not shown
    [INFO  ] wp-config: DISABLE_WP_CRON is true: queued and scheduled emails need a real cron job  -> */5 * * * * wp cron event run --due-now --path=/var/www/site
    5 high, 4 medium, 1 low, 2 info
    

    Next steps

    1. Install one SMTP plugin and remove the conflicting ones.
    2. Send from an address on your own domain with SPF and DKIM aligned.
    3. Send a test email and re-run the check.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Stop losing WooCommerce orders and contact form notifications to the spam folder. This skill diagnoses why WordPress emails are failing and helps you transition from unreliable PHP mail to authenticated SMTP or transactional API providers.

    What it does

    • Diagnoses delivery failures by analyzing email headers (EML files) for SPF, DKIM, and DMARC alignment.
    • Audits plugin conflicts by identifying multiple active mailer plugins that interfere with wp_mail().
    • Recommends providers based on site volume, comparing Amazon SES, Postmark, SendGrid, Brevo, and SMTP.
    • Automates plugin cleanup by generating precise wp-cli commands to deactivate redundant or conflicting mailers.
    • Validates configuration by checking wp-config.php constants and plugin settings without exposing sensitive credentials.

    How it works

    1. Evidence collection: Use a received test email (EML) and your current plugin list to identify the root cause of "sent via PHP mail" issues.
    2. Execution: Run wp_mail_check.py to map findings to severity levels (High/Medium) and detect server hostname leaks in Return-Path headers.
    3. Selection: Choose an ESP API or SMTP path based on the generated comparison report.
    4. Configuration: Execute plugin deactivations and setup steps to "force From email" to your domain.
    5. Verification: Re-analyze a new test message to confirm dkim=pass and dmarc=pass.

    Frameworks & tools

    This tool uses Python 3.8 and integrates with WP-CLI for plugin management. It supports major mailers including WP Mail SMTP, FluentSMTP, and Post SMTP, as well as APIs for Amazon SES, SendGrid, Mailgun, and Brevo.

    Why this beats prompting it yourself

    Generic prompts often miss the "multiple mailer" conflict common in WordPress or fail to check the specific Return-Path header that causes server-level blocks. This skill follows a specialized diagnostic script that separates server configuration from application-level plugin errors.

    Use cases

    • Fix WooCommerce "New Order" notifications that never reach the admin or customer.
    • Migrate a high-volume site from shared hosting SMTP to Amazon SES API.
    • Resolve "Sent on behalf of wordpress@domain.com" issues in Gmail and Outlook.
    • Audit a client site to see why contact form submissions are landing in spam.

    Known limitations

    Requires WP-CLI on the server for automated plugin audits. Does not perform direct DNS record writes or handle malware-related spam incidents.


    Open source: saizul/email-deliverability-skills on GitHub (MIT licence, by Saizul Amin).

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.

    Requires WP-CLI for plugin auditing. Does not resolve DNS records directly or fix hacked sites sending spam. Script is read-only for credentials.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    This skill is designed for any WordPress environment using WP-CLI, including WooCommerce stores and membership sites, and works with all major email service providers like Amazon SES, Postmark, and Brevo.

    Unlike basic prompts, this skill uses a specialized diagnostic script to identify hidden issues like Return-Path header leaks and 'multiple mailer' plugin conflicts that standard AI models often overlook.

    You will receive the diagnostic Python scripts, the WP-CLI integration logic, and a step-by-step workflow for auditing and resolving deliverability failures.

    The skill identifies SPF, DKIM, and DMARC alignment issues, but you will still need access to your domain's DNS provider to manually apply the recommended record updates.

    The diagnostic phase requires a sample email (EML file) and a list of active plugins; for automated cleanup, you will need to run the generated commands via WP-CLI on your server.

    New in APIs & Backend