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

Sending mails does not work #2889

Closed
Guite opened this issue May 29, 2016 · 4 comments
Closed

Sending mails does not work #2889

Guite opened this issue May 29, 2016 · 4 comments
Assignees
Milestone

Comments

@Guite
Copy link
Member

Guite commented May 29, 2016

Expected behavior

Sending mails working.

Actual behavior

No mails are sent.

Steps to reproduce

Try at /mailer/config/test.

Reason

The problem relates to delivery_addresses: { } in generated.yml
When this is replaced by delivery_addresses: [] mails are sent correctly.

See also

symfony/symfony#16266
symfony/symfony#9870

@Guite Guite added this to the 1.4.3 milestone May 29, 2016
@Guite
Copy link
Member Author

Guite commented May 29, 2016

There is a fix in symfony/symfony#17578 but this has been merged into Symfony 3.1.
See also: http://symfony.com/blog/new-in-symfony-3-1-customizable-yaml-parsing-and-dumping

@Guite
Copy link
Member Author

Guite commented Jul 12, 2016

Because DynamicConfigDumper extends YamlDumper anyway we can maybe backport the fix from Symfony 3.1 to it.

@craigh
Copy link
Member

craigh commented Jul 16, 2016

@Guite - probably we need an upgrade routine to reformat the generated.yml file?

@Guite
Copy link
Member Author

Guite commented Jul 16, 2016

No I don't think this is required. Because earlier the default value was not [], but null:

'delivery_address' => !empty($currentConfig['delivery_address']) ? $currentConfig['delivery_address'] : null,

I checked two installations of 1.4.0 and both files contained delivery_address: null.

Note Symfony changed delivery_address to delivery_addresses in a recent update, so this does not affect earlier core versions 😄

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

No branches or pull requests

2 participants