Changes between Initial Version and Version 1 of Ticket #54465, comment 1
- Timestamp:
- 07/12/2025 06:02:54 PM (14 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #54465, comment 1
initial v1 2 2 3 3 So basically, here is that this address `nameSurname.@gmail.com` is not valid. 4 5 [https://github.com/PHPMailer/PHPMailer/blob/0ff2d3c8ead628df2493537d9f91db962aa47718/src/PHPMailer.php#L1638 If you check PHPMailer code] basically its failing to spot a to, a cc or a bcc because [https://github.com/PHPMailer/PHPMailer/blob/0ff2d3c8ead628df2493537d9f91db962aa47718/src/PHPMailer.php#L1105 its unable to find a valid address] with an @ because of that dot, 6 7 Maybe you could find some help with this little workaround: I was able to bypass this by setting the `wp_mail_from` filter like this: 8 9 {{{ 10 add_filter('wp_mail_from', function($original_email_address) { 11 return 'wordpress@server.local'; 12 }); 13 }}} 4 14 5 15 Although using my example code for sending emails: … … 54 64 Date: Sat, 12 Jul 2025 17:25:56 +0000 55 65 To: nameSurname.@gmail.com 56 From: WordPress <wordpress@ mailhog.local>66 From: WordPress <wordpress@server.local> 57 67 Subject: Subject 58 68 Message-ID: <nUcLDNeY6tTDsDB3ReQB88Sfd3pQrxN0QRugoMqqR4@localhost> … … 64 74 }}} 65 75 66 The email, although, is being delivered with `wp_mail` despite not being compliant. 76 The email, although, is being delivered with `wp_mail` despite not being compliant. So I don't recommend you using an email like such 67 77 68 78 Closing this for being `invalid` for not compliant with the RFC.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)