#40394 closed defect (bug) (worksforme)
Activation email not sent to new users on Windows (have come out another time)
| Reported by: | axewww | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Version: | 4.7.3 | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
https://wordpress.org/support/topic/activation-email-not-sent-to-users/#post-9009273
I experience this into a: windowsOS/php5.6/apache2.4
when i test an user registration, the email that inform the admin about new user is sent out, while the activation email to the user not.
so to fix it on fly, i've remove (like last time) $header that seem to cause a problem:
<?php //Can't use additional_parameters in safe_mode, calling mail() with null params breaks //@link http://php.net/manual/en/function.mail.php if (ini_get('safe_mode') or !$this->UseSendmailOptions or is_null($params)) { //$result = @mail($to, $subject, $body, $header); $result = @mail($to, $subject, $body); } else { $result = @mail($to, $subject, $body, $header, $params); } return $result;
Change History (4)
#3
@
12 months ago
- Resolution → worksforme
- Status new → closed
Reproduction Report
Description
❌ This report can't validate that the issue can be reproduced any more.
Environment
- WordPress: 6.8.2-RC1
- PHP: 8.2.18
- Server: Apache/2.4.59 (Win64) OpenSSL/3.1.5
- Database: mysqli (Server: 11.8.1-MariaDB-log / Client: mysqlnd 8.2.18)
- Browser: Chrome 138.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Five 1.2
- MU Plugins: None activated
- Plugins:
- Email Tester 1.0.0
- Test Reports 1.2.0
- WordPress Beta Tester 3.6.4
Reproduction Instructions
- Setting up the mail environment
- Enable User registration in Settings > General > Anyone can register
- Register a new user
- ❌ Both "New User Registration" and "Login Details" emails are received.
Actual Results
- ❌ Error condition is not occurring.
Additional Notes
- Long time has passed and PHP 5.6 is not even supported any more. Tested under the same environment, but with a supported PHP version like 8.2 and this cannot be reproduced any more. Maybe the fact that all related tickets as @SergeyBiryukov presented back in the day, have been already closed, means that this has been sorted at some point.
Closing with worksforme
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related: #20970, #21738, #37881.