Skip to content

SMTP verification error #15

@ribvid

Description

@ribvid

Version

1.0.3

What did you expect to happen?

I installed the Acorn Mail package, configured my SMTP authentication data in .env, and tried to send an email using WP-CLI. I expected the email to send successfully without any errors.

What actually happens?

Emails fail to send and I get this SMTP error:

SMTP Error: The following recipients failed: [MY EMAIL] Verification failed for <wordpress@[MY DOMAIN].test>
  The mail server does not recognize wordpress@[MY DOMAIN].test as a valid sender.
  Sender verify failed

The only way I can get emails to work is by manually adding this code:

add_filter('phpmailer_init', function ($mail) {
    $mail->Sender = $mail->From;
    return $mail;
});

Steps to reproduce

  1. Install Roots/Sage theme with Acorn
  2. Install Acorn Mail plugin
  3. Configure SMTP settings in .env
  4. Try to send a test email using wp acorn mail:test
  5. Email fails with SMTP sender verification error

System info

No response

Log output

Please confirm this isn't a support request.

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions