-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
| Q | A |
|---|---|
| Bug? | yes |
| New Feature? | no |
| Community Bundle Version | 17e2867 |
| Sulu Version | 2.6.5 |
| Browser Version | n/a |
Actual Behavior
Sending the password forgotten form leads to the following exception:
Email "From name" does not comply with addr-spec of RFC 2822.
Expected Behavior
What is the behavior you expect?
Steps to Reproduce
Using password forget feature with following sulu_community.yaml
sulu_community:
webspaces:
my-webspace:
from:
email: '[email protected]'
name: 'From name'
The structure of CommunityManagerCompilerPass and MailFactory differ, e.g. for from email:
SuluCommunityBundle/DependencyInjection/CompilerPass/CommunityManagerCompilerPass.php
Line 126 in 17e2867
| $webspaceConfig[Configuration::EMAIL_FROM][Configuration::EMAIL_FROM_EMAIL] => $webspaceConfig[Configuration::EMAIL_FROM][Configuration::EMAIL_FROM_NAME], |
The config structure results to following array:
['[email protected]' => 'From name']
but
SuluCommunityBundle/Mail/MailFactory.php
Line 121 in 17e2867
| $email = $address[\array_keys($address)[0]]; |
Possible Solutions
Fixing MailFactory::getAddress() in order to work with current configuration structure.
Metadata
Metadata
Assignees
Labels
No labels