mePart($sender['name'] ?? ''); return [ 'from_name' => $fromName, 'from_email' => $sender['address'], 'from_name_email' => sprintf('%s <%s>', $fromName, $sender['address']), ]; } private function getReplyToNameAndAddress(array $sender, array $replyTo = null): array { if (!$replyTo) { $replyTo = $this->settings->get('reply_to'); $replyTo['name'] = (!empty($replyTo['name'])) ? $replyTo['name'] : $sender['from_name']; $replyTo['address'] = (!empty($replyTo['address'])) ? $replyTo['address'] : $sender['from_email']; } if (empty($replyTo['address'])) { $replyTo['address'] = $sender['from_email']; } $replyToName = $this->encodeAddressNamePart($replyTo['name'] ?? ''); return [ 'reply_to_name' => $replyToName, 'reply_to_email' => $replyTo['address'], 'reply_to_name_email' => sprintf('%s <%s>', $replyToName, $replyTo['address']), ]; } private function getReturnPathAddress(array $sender): ?string { $bounceAddress = (string)$this->settings->get('bounce.address'); return $this->wp->isEmail($bounceAddress) ? $bounceAddress : $sender['from_email']; } private function encodeAddressNamePart($name): string { if (mb_detect_encoding($name) === 'ASCII') return $name; // encode non-ASCII string as per RFC 2047 (https://www.ietf.org/rfc/rfc2047.txt) return sprintf('=?utf-8?B?%s?=', base64_encode($name)); } }
Fatal error: Uncaught Error: Class "MailPoet\Mailer\MailerFactory" not found in /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php:3097 Stack trace: #0 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4454): MailPoetGenerated\FreeCachedContainer->getMailerFactoryService() #1 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4474): MailPoetGenerated\FreeCachedContainer->getNewSubscriberNotificationMailerService() #2 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4634): MailPoetGenerated\FreeCachedContainer->getSubscriberActionsService() #3 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2248): MailPoetGenerated\FreeCachedContainer->getCommentService() #4 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2276): MailPoetGenerated\FreeCachedContainer->getHooks2Service() #5 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(122): MailPoetGenerated\FreeCachedContainer->getInitializerService() #6 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(110): MailPoetVendor\Symfony\Component\DependencyInjection\Container->make('MailPoet\\Config...', 1) #7 /htdocs/wp-content/plugins/mailpoet/lib/DI/ContainerWrapper.php(39): MailPoetVendor\Symfony\Component\DependencyInjection\Container->get('MailPoet\\Config...') #8 /htdocs/wp-content/plugins/mailpoet/mailpoet_initializer.php(89): MailPoet\DI\ContainerWrapper->get('MailPoet\\Config...') #9 /htdocs/wp-content/plugins/mailpoet/mailpoet.php(194): require_once('/htdocs/wp-cont...') #10 /htdocs/wp-settings.php(462): include_once('/htdocs/wp-cont...') #11 /htdocs/wp-config.php(96): require_once('/htdocs/wp-sett...') #12 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #13 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #14 /htdocs/index.php(17): require('/htdocs/wp-blog...') #15 {main} thrown in /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php on line 3097