We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the old swift mailer I was able to do:
$message = (new \Swift_Message()) ->setEncoder(new \Swift_Mime_ContentEncoder_PlainContentEncoder('8bit')) ->setMaxLineLength(1000)
So far, the only way I found to do the same thing with symfony/mailer is to extend Symfony\Component\Mime\Email. in particular this method:
symfony/mailer
Symfony\Component\Mime\Email
public function getBody(): AbstractPart { return new TextPart($this->getTextBody(), $this->getTextCharset(), 'plain', '8bit'); }
It would be maybe nice to extend the current text() method and add an encoder param?
$message = (new Email())->text($longLine, 'utf-8', $myCustomEncoder);
The text was updated successfully, but these errors were encountered:
Thank you for this suggestion. There has not been a lot of activity here for a while. Would you still like to see this feature?
Sorry, something went wrong.
Friendly reminder that this issue exists. If I don't hear anything I'll close this.
Hey,
I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!
No branches or pull requests
Description
Using the old swift mailer I was able to do:
So far, the only way I found to do the same thing with
symfony/mailer
is to extendSymfony\Component\Mime\Email
. in particular this method:Example
It would be maybe nice to extend the current text() method and add an encoder param?
The text was updated successfully, but these errors were encountered: