Project

General

Profile

Actions

Bug #92839

closed

mailmessage send via spoolfile

Added by Karel Kuijpers over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-11-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

I have upgraded from typo3 9.5 to 10.4. I made adaptions to the new api interface of MailMessage. Sending e-mail directly works fine. When I tried sending via a spool file I got the following problems:
1. For each e-mail 5 identical files were created in the spool directory. So each e-mail shall be send 5 times.
2. When I give the command typo3/sysext/core/bin/typo3 swiftmailer:spool:send I got the error:
typo3 Uncaught TYPO3 Exception Argument 1 passed to
Symfony\Component\Mailer\Transport\Smtp\SmtpTransport::send()
must be an instance of Symfony\Component\Mime\RawMessage,
instance of Symfony\Component\Mailer\SentMessage given,
called in typo3/sysext/core/Classes/Mail/FileSpool.php on line 165
thrown in file vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php in line 129

I have analyzed the causes of these errors. They are because of the following programming errors in method doSend of class FileSpool:
1. Class SentMessage is serialized: “$ser = serialize($message);”
instead of class RawMessage: “$ser = serialize($message-> getMessage());”
2. Within the retry loop for creating the file with the message the loop continues after a successful write. There should be a break statement.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #91764: File mail spool generates multiple messagesClosed2020-07-08

Actions
Related to TYPO3 Core - Bug #92053: Test Mail Setup: Serializer ExceptionClosed2020-08-20

Actions
Actions #1

Updated by Georg Ringer over 3 years ago

  • Related to Bug #91764: File mail spool generates multiple messages added
Actions #2

Updated by Georg Ringer over 3 years ago

  • Category deleted (Extbase)
Actions #3

Updated by Simon Gilli over 3 years ago

  • Related to Bug #92053: Test Mail Setup: Serializer Exception added
Actions #4

Updated by Georg Ringer over 3 years ago

  • Status changed from New to Resolved

Thanks for creating the issue. The mentioned problems should be fixed with the as related set issues. Therefore I am closing the issue. A new release for 10.4 will be available soon which will then include those fixes as well.

Actions #5

Updated by Benni Mack over 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF