| @@ -77,15 +77,10 @@ | ||
| 77 | 77 | } else { |
| 78 | 78 | $args[ 'body' ][ 'altbody' ] = $this->Body; |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | - if($reply_to = $this->getReplyToAddresses()){ | |
| 82 | - /** | |
| 83 | - * $reply_to is an array of arrays. | |
| 84 | - * [ [ $address, $name ], [...] ] | |
| 85 | - * To get a string value for the address, we need to reset it twice. | |
| 86 | - */ | |
| 87 | - $reply_to = reset($reply_to); | |
| 81 | + if($this->getReplyToAddresses()){ | |
| 82 | + $reply_to = reset($this->getReplyToAddresses()); | |
| 88 | 83 | $args['body']['reply_to'] = reset($reply_to); |
| 89 | 84 | } |
| 90 | 85 | |
| 91 | 86 | if( ! empty( $cc_emails ) ) { |