swiftmailer-mailgun-bundle icon indicating copy to clipboard operation
swiftmailer-mailgun-bundle copied to clipboard

The child node "key" at path "cspoo_swiftmailer_mailgun" must be configured.

Open nmobregon opened this issue 6 years ago • 5 comments

Hi! I installed everything and Im getting this error whenever I want to run a command.

I'm running Symfony 4 and this version of the lib "name": "cspoo/swiftmailer-mailgun-bundle", "version": "1.1.0",

$ php bin/console doctrine:schema:update

In ArrayNode.php line 230:

The child node "key" at path "cspoo_swiftmailer_mailgun" must be configured.

I can't configure as it shows in the docs because it changes for Symfony v4, so I tried putting this conf in config/services.yaml, config/packages/mailgun.yaml, I even created a parameters.yaml but with no success.

    cspoo_swiftmailer_mailgun:
        key: "key-f132131313131"
        domain: "sandbox700asdasdasdadasdasdasdadada.mailgun.org"
    swiftmailer:
        transport: "mailgun"

HELP PLEASE!! Thanks in advance

nmobregon avatar Sep 10 '18 00:09 nmobregon

I have the same issue

JoelSParker avatar Sep 11 '18 14:09 JoelSParker

Meanwhile I have opted to use the mailgun smtp server directly, without the need to use this library.

smtp://smtp.mailgun.org:587?encryption=tls&username=USERNAME&password=PASSWORD

nmobregon avatar Sep 12 '18 17:09 nmobregon

Meanwhile I have opted to use the mailgun smtp server directly, without the need to use this library.

smtp://smtp.mailgun.org:587?encryption=tls&username=USERNAME&password=PASSWORD

Awesome! I was trying to do it with the URL directly but I couldn't figure out the URL. Thank you!

JoelSParker avatar Sep 12 '18 17:09 JoelSParker

This, for me, is a critical issue. Annoying that none of the people who put this software up give even a clue. I use GoDaddy for hosting, and they do NOT ALLOW smtp mail outs to 3rd parties. So the API is the only way to make my code work. Would appreciate comments on how to make this work on Symfony 4, as others have commented and obviously given up for lack of replies

ghost avatar Oct 02 '18 14:10 ghost

I've put setting right here.

If I didn't miss anything, it should work.

fluchi avatar Oct 10 '18 12:10 fluchi