[wp-trac] [WordPress Trac] #21659: wp_mail() problem with Reply-To header
WordPress Trac
noreply at wordpress.org
Fri Sep 6 23:11:18 UTC 2013
#21659: wp_mail() problem with Reply-To header
--------------------------+------------------------------
Reporter: pavelevap | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Mail | Version: 3.4.1
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by szepe.viktor):
it helped me:
wp-includes/pluggable.php
{{{
243a244
> $repto = array();
298a300,302
> case 'reply-to':
> $repto = array_merge(
(array) $repto, explode( ',', $content ) );
> break;
403a408,425
> if ( !empty( $repto ) ) {
> foreach ( (array) $repto as $recipient) {
> try {
> // Break $recipient into name and address
parts if in the format "Foo <bar at baz.com>"
> $recipient_name = '';
> if( preg_match( '/(.*)<(.+)>/',
$recipient, $matches ) ) {
> if ( count( $matches ) == 3 ) {
> $recipient_name =
$matches[1];
> $recipient = $matches[2];
> }
> }
> $phpmailer->AddReplyTo( $recipient,
$recipient_name );
> } catch ( phpmailerException $e ) {
> continue;
> }
> }
> }
>
430a453
> error_log(sprintf( '%1$s: %2$s', $name, $content ));
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21659#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list