tehplague / swiftmailer-mailgun-bundle

Swiftmailer Mailgun transport as a Symfony bundle
104 stars 49 forks source link

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

Open nmobregon opened 6 years ago

nmobregon commented 6 years ago

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

JoelSParker commented 6 years ago

I have the same issue

nmobregon commented 6 years ago

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

JoelSParker commented 6 years ago

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!

ghost commented 5 years ago

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

fluchi commented 5 years ago

I've put setting right here.

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