Coder Social home page Coder Social logo

Comments (6)

mplodowski avatar mplodowski commented on August 29, 2024

Please go to the backend Settings -> Event Log. There should be error record. Copy and paste error message and stack trace.

In new version to_email and to_name field are replaced with repeater recipients field.

I think you can remove this boot method and use Autoresponder feature, where you can specify which fields to use and even the mail template.

from formbuilder-plugin-public.

mplodowski avatar mplodowski commented on August 29, 2024

If you want to use boot method to change recipients than this is the code to use now:

\Event::listen('formBuilder.beforeSendMessage', function ($form, $data) {
    $form->recipients = [
        [
            'email' => $data['recipient_email'],
            'recipient_name' => $data['recipient_name'],
        ]
    ];
});

from formbuilder-plugin-public.

kombimedia avatar kombimedia commented on August 29, 2024

Hi @mplodowski,

Thanks for your speedy response.

There was no event logged for this error.

Thanks also for the updated boot method snippet. Because the email recipient will always need to be dynamically injected I have gone for this method to override the default recipient, preventing two emails being sent.

Cheers

from formbuilder-plugin-public.

mplodowski avatar mplodowski commented on August 29, 2024

Without seeing error message there is very limited way to help you.

The only way to see this error is to enable APP_DEBUG = true in .env file.

You can also run: composer update in project root.

The last resort should be reinstalling plugin, but can cause data loss.

from formbuilder-plugin-public.

kombimedia avatar kombimedia commented on August 29, 2024

@mplodowski,

Sorry, I wasn't clear. I'm not receiving the error anymore. I have updated my boot method to the one you provided, and removed un-required recipient repeaters that had been generated after upgrading to 2.1.0. I think the error i was receiving was due to a 'new recipient' not having an email address defined.

Thanks

from formbuilder-plugin-public.

mplodowski avatar mplodowski commented on August 29, 2024

Super! I am glad it works now.

from formbuilder-plugin-public.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.