Skip to content

Failed attempts to send emails are reporting as succeeded when the fallback method is disabled #210

@brholstein

Description

@brholstein

(Using version 2.1.19)

To reproduce:
From the Mailgun settings page (with correctly configured settings):

  1. Set an invalid API key
  2. Disable fallback method option
  3. Click "Test Configuration"
    The success toast will appear but no emails are logged as accepted in the Mailgun dashboard events log.

A little digging reveals that wp_mail returns true when the initial sending method fails and the fallback method is disabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions