2 namespace TYPO3\CMS\Core\Mail;
51 $this->mailer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Mail\Mailer::class);
63 $this->
getHeaders()->addTextHeader(
'X-Mailer', $this->mailerHeader);
64 return $this->mailer->send($this, $this->failedRecipients);
96 return parent::setReturnPath($address);
111 return parent::setSender($address, $name);
126 public function setFrom($addresses, $name = null)
129 return parent::setFrom($addresses, $name);
147 return parent::setReplyTo($addresses, $name);
163 public function setTo($addresses, $name = null)
166 return parent::setTo($addresses, $name);
179 public function setCc($addresses, $name = null)
182 return parent::setCc($addresses, $name);
195 public function setBcc($addresses, $name = null)
198 return parent::setBcc($addresses, $name);
210 return parent::setReadReceiptTo($addresses);
221 if (!is_array($addresses)) {
225 foreach ($addresses as $email => $name) {
226 if (ctype_digit($email)) {
233 return $newAddresses;
246 if (!is_string($email)) {
250 $atPosition = strrpos($email,
'@');
251 if (!$atPosition || $atPosition + 1 === strlen($email)) {
255 $domain = substr($email, $atPosition + 1);
256 $local = substr($email, 0, $atPosition);
257 if (!mb_check_encoding($domain,
'ASCII')) {
258 $domain = \TYPO3\CMS\Core\Utility\GeneralUtility::idnaEncode($domain);
261 return $local .
'@' . $domain;