Skip to content
New issue

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

[Mime] Add NamedAddress::fromString #33086

gisostallenberg opened this issue Aug 9, 2019 · 2 comments


Copy link

commented Aug 9, 2019

I'm about to build a feature to convert an encoded address to a NamedAddress instance, but thought it might be interesting adding it in the mime component by default. This makes it easier and more readable to use addresses in configuration for example.


use Symfony\Component\Mime\NamedAddress;

$address = NamedAddress::fromString("Giso Stallenberg <>"); // instance of NamedAddress
$address->getName(); // Giso Stallenberg
$address->getAddress(); //

This comment has been minimized.

Copy link

commented Aug 9, 2019

Great! That looks like a good addition.


This comment has been minimized.

Copy link
Contributor Author

commented Aug 9, 2019

Cool, I'll try to create a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.