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

Message::formatEmail() #64

Closed
WinterSilence opened this issue Jun 3, 2019 · 1 comment
Closed

Message::formatEmail() #64

WinterSilence opened this issue Jun 3, 2019 · 1 comment

Comments

@WinterSilence
Copy link

Version: 3.3.0

Bug Description

formatEmail save name wrapped in quotes

if (!$name && preg_match('#^(.+) +<(.*)>\z#', $email, $matches)) {

Steps To Reproduce

$message->formatEmail('"Winter Silence" <info@site.com>'); add address ['name' => '"Winter Silence"', 'email' => 'info@site.com']

Possible Solution

fix regexp: '#^"?(.+)"?\s+<(.*)>\z#'

@WinterSilence
Copy link
Author

@dg 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant