Bug #89083
closedMailMessage setFrom and setTo are throwing exceptions
100%
Description
Both setFrom and setTo are not working as documented.
$mail = $this->objectManager->get(\TYPO3\CMS\Core\Mail\MailMessage::class);
$mail->setFrom('test2@fischer.im');
Exception -> An address can be an instance of Address or a string ("NULL") given).
$mail->setFrom('test2@fischer.im', 'bbb');
Exception -> Email "bbb" does not comply with addr-spec of RFC 2822.
$mail->setFrom(['test2@fischer.im' => 'bbb']);
Exception -> An address can be an instance of Address or a string ("array") given).
$mail->setTo(['test1@fischer.im' => 'aaa']);
Exception -> An address can be an instance of Address or a string ("array") given).
Updated by Frank Nägler about 5 years ago
- Status changed from New to In Progress
- Assignee set to Frank Nägler
Updated by Frank Nägler about 5 years ago
- Related to Bug #88702: EmailFinisher - Recipients - Cannot unpack array with string keys added
Updated by Frank Nägler about 5 years ago
- Related to Feature #88643: Replace SwiftMailer with Symfony/Mailer added
Updated by Gerrit Code Review about 5 years ago
- Status changed from In Progress to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61908
Updated by Gerrit Code Review about 5 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61908
Updated by Gerrit Code Review about 5 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61908
Updated by Gerrit Code Review about 5 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61908
Updated by Gerrit Code Review about 5 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61908
Updated by Gerrit Code Review about 5 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61908
Updated by Georg Ringer about 5 years ago
- Related to Bug #89379: Emails sending doesn't work using MailMessage added
Updated by Frank Nägler about 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 9fec751ac367c8a22634806e0746cb73dce13177.
Updated by Benni Mack almost 5 years ago
- Status changed from Resolved to Closed