Benjamin Lanet
Benjamin Lanet
Hi @jprivet-dev , thanks for you feedback ! > But, if I want to use [`TemplatedEmail()`](https://github.com/symfony/symfony/blob/75b8c663d393f0dcda12cb2ea024657f77850fb6/src/Symfony/Bridge/Twig/Mime/TemplatedEmail.php) as in the example at https://symfony.com/doc/current/mailer.html#html-content, it's not possible to specify base64 encoding: >...
> > Each part of the sent mail will be encoded in Base 64 with defined charset in `Content-Type` header and `base64` in `Content-Transfer-Encoding` header. > > I'm not sure...
That was my first investigation but, IMO, charset and encoding are 2 different things and encoded content can be iso or utf. And indeed, in this case, accentuated characters (like...
For me, charset can depends of the part : https://www.rfc-editor.org/rfc/rfc9110#section-8.3.2 Or maybe I misunderstood something in the RFC. @jprivet-dev in your last exemple, is argument $charset can really be null...
And I think, charset reading depends of client :  
> However, the problem remains the same with [TemplatedEmail()](https://github.com/symfony/symfony/blob/db1959827a9afa2d33752a459a5c07b667050fef/src/Symfony/Bridge/Twig/Mime/TemplatedEmail.php): how to indicate the use of base64 encoding? I have add `textEncoding()` and `htmlEncoding()` methods in `Email` parent class, to have...