Project

General

Profile

Actions

Bug #89083

closed

MailMessage setFrom and setTo are throwing exceptions

Added by Sebastian Fischer over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Miscellaneous
Target version:
-
Start date:
2019-09-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Both setFrom and setTo are not working as documented.

$mail = $this->objectManager->get(\TYPO3\CMS\Core\Mail\MailMessage::class);

$mail->setFrom('');
Exception -> An address can be an instance of Address or a string ("NULL") given).

$mail->setFrom('', 'bbb');
Exception -> Email "bbb" does not comply with addr-spec of RFC 2822.

$mail->setFrom(['' => 'bbb']);
Exception -> An address can be an instance of Address or a string ("array") given).

$mail->setTo(['' => 'aaa']);
Exception -> An address can be an instance of Address or a string ("array") given).


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #88702: EmailFinisher - Recipients - Cannot unpack array with string keysClosed2019-07-08

Actions
Related to TYPO3 Core - Feature #88643: Replace SwiftMailer with Symfony/MailerClosedBenni Mack2019-07-05

Actions
Related to TYPO3 Core - Bug #89379: Emails sending doesn't work using MailMessageClosed2019-10-09

Actions
Actions #1

Updated by Frank Nägler over 4 years ago

  • Status changed from New to In Progress
  • Assignee set to Frank Nägler
Actions #2

Updated by Frank Nägler over 4 years ago

  • Related to Bug #88702: EmailFinisher - Recipients - Cannot unpack array with string keys added
Actions #3

Updated by Frank Nägler over 4 years ago

  • Related to Feature #88643: Replace SwiftMailer with Symfony/Mailer added
Actions #4

Updated by Gerrit Code Review over 4 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

Actions #5

Updated by Gerrit Code Review over 4 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

Actions #6

Updated by Gerrit Code Review over 4 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

Actions #7

Updated by Gerrit Code Review over 4 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

Actions #8

Updated by Gerrit Code Review over 4 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

Actions #9

Updated by Gerrit Code Review over 4 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

Actions #10

Updated by Georg Ringer over 4 years ago

  • Related to Bug #89379: Emails sending doesn't work using MailMessage added
Actions #11

Updated by Frank Nägler over 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #12

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF