WordPress.org

Make WordPress Core

Opened 8 months ago

Last modified 8 months ago

#46333 new defect (bug)

wp_mail successfully working but not sending mails - WordPress 5.1

Reported by: JulesPryla Owned by:
Milestone: Awaiting Review Priority: normal
Severity: major Version: 5.1
Component: Mail Keywords: needs-testing needs-patch dev-feedback needs-unit-tests
Focuses: Cc:
PR Number:

Description

The function wp_mail is used by many plugins and always giving a success message but never really sending mails out.

Change History (3)

#1 @szepe.viktor
8 months ago

wp_mail() calls mail() which depends on you PHP environment.

Please try a simple PHP script with only one var_dump(mail()); call to debug it.

#2 @pento
8 months ago

Thank you for the bug report, @JulesPryla!

What version of PHP are you using? There seems to be a related issue with PHP 7.3 (#46217), but that affects WordPress 5.0, too.

Are you able to reproduce the issue with no plugins active on your site?

#3 @bhargavmehta
8 months ago

Hello @pento ,

Possible duplicate of #46217

Thank you

Note: See TracTickets for help on using tickets.