Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#48719 closed defect (bug) (invalid)

wp_mail() do not sent mail to the addresses ended by

Reported by: syshut's profile syshut Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.3
Component: Mail Keywords:
Focuses: Cc:


function comment_mail_notify() {
        $to = '';
        $subject = 'subject';
        $message = 'message';
        $headers = 'xxxx';
        wp_mail( $to, $subject, $message, $headers );
add_action( 'comment_post', 'comment_mail_notify' );

When there is a new comment, wp_mail() sends an email to the email address defined in the $to parameter.

If the email address is ended by , wp_mail() do not send the email. But other addresses, like, or, wp_mail() works.

Is there something wrong with this function?

Change History (1)

#1 @SergeyBiryukov
5 years ago

  • Component changed from General to Mail
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi there, welcome to WordPress Trac! Thanks for the report.

There are no restrictions like that in WordPress core, it sends emails to any address in the same way. Successful delivery may depend on a number of factors:

  • Spam filters.
  • Hosting settings.
  • Mail service settings.
  • Whether the host is blacklisted on that mail service.
  • DKIM and SPF settings.
  • etc.

Please try the support forums for further troubleshooting:

This support article might also be helpful:

Last edited 5 years ago by SergeyBiryukov (previous) (diff)
Note: See TracTickets for help on using tickets.