Closed
Description
Symfony version(s) affected
5.4.0-BETA2
Description
When opening the Emails tab in the Profiler and you have sent at least 1 email, the following error pops up:
Neither the property "base64Encode" nor one of the methods "base64Encode()", "getbase64Encode()"/"isbase64Encode()"/"hasbase64Encode()" or "__call()" exist and have public access in class "Symfony\Component\Mailer\DataCollector\MessageDataCollector".
How to reproduce
- Send one email with an HTML body using Symfony Mailer
- Open the Emails tab in the Profiler for the appropriate Request
Possible Solution
Add the following code to src/Symfony/Component/Mailer/DataCollector/MessageDataCollector.php:
public function base64Encode(string $body)
{
return base64_encode($body);
}
Additional Context
No response