Commit 2248c623 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Changing explode to trimexplode

parent 4cb006db
......@@ -293,8 +293,8 @@ class MailTemplateService {
);
if ($template !== NULL) {
$this->setCcAddresses(explode(',', $template->getCc()));
$this->setBccAddresses(explode(',', $template->getBcc()));
$this->setCcAddresses(GeneralUtility::trimExplode(',', $template->getCc()));
$this->setBccAddresses(GeneralUtility::trimExplode(',', $template->getBcc()));
$this->setReplyToAddress($template->getReplyTo());
$this->setFromAddress($template->getFromMail(), $template->getFromName());
return TRUE;
......@@ -448,8 +448,8 @@ class MailTemplateService {
$this->mailMessage->setTo($mailToSend->getToAddress());
$this->mailMessage->setFrom($mailToSend->getFromAddress(), $mailToSend->getFromName());
$this->mailMessage->setSubject($mailToSend->getMailSubject());
$this->mailMessage->setBcc(explode(',', $mailToSend->getBccAddresses()));
$this->mailMessage->setCc(explode(',', $mailToSend->getCcAddresses()));
$this->mailMessage->setBcc(GeneralUtility::trimExplode(',', $mailToSend->getBccAddresses()));
$this->mailMessage->setCc(GeneralUtility::trimExplode(',', $mailToSend->getCcAddresses()));
$this->mailMessage->setReplyTo($mailToSend->getReplyTo());
$this->mailMessage->send();
}
......@@ -494,7 +494,7 @@ class MailTemplateService {
public function setCcAddresses($ccAddresses) {
if ($ccAddresses) {
$this->ccAddresses = $ccAddresses;
$this->mailMessage->setCc(explode(',', $this->ccAddresses));
$this->mailMessage->setCc(GeneralUtility::trimExplode(',', $this->ccAddresses));
}
return $this;
......@@ -565,7 +565,7 @@ class MailTemplateService {
public function setBccAddresses($bccAddresses) {
if ($bccAddresses) {
$this->bccAddresses = $bccAddresses;
$this->mailMessage->setBcc(explode(',', $this->bccAddresses));
$this->mailMessage->setBcc(GeneralUtility::trimExplode(',', $this->bccAddresses));
}
return $this;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment