sevengroupfrance/sulu-hub-score-form-sender-bundle

1.2.1 2023-07-03 08:52 UTC

This package is not auto-updated.

Last update: 2024-10-25 22:27:54 UTC


README

1 - create sulu_hub_score_form_sender.yaml file in your config/packages/ folder.
2 - Then add this configuration to it:

sulu_hub_score_form_sender:
    base_configuration:
        id: '%env(HUBSCORE_USERNAME)%'
        pwd: '%env(HUBSCORE_PASSWORD)%'
        base_url: '%env(HUBSCORE_URL)%'

    login_url: /login_check

    payload_configuration:
        campagn_id: '%env(HUBSCORE_CAMPAGN)%'
        database_id: '%env(HUBSCORE_DB)%'

    send_mail_url: /v1/sends/mails

3 - download this bundle composer require sevengroupfrance/sulu-hub-score-form-sender-bundle

This bundle is for Sulu 2.4 and prior, as it uses swiftmailer to make this work. If you're using Sulu 2.5, prefer using Symfony mailer

1.1.0

You can now configure the fields you need, your campaign and database ID, for multiple forms.

1.1.1

You can now configure flashbag message (error and success only)

1.2.0

Bundle updated to use swiftmailer to watch mail send event instead of kernel event FormPostData.