Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Namrata 8 posts 78 karma points
    Aug 23, 2017 @ 04:04
    Namrata
    0

    Sending email using email handler through customized form submission url in formulate.

    Hi Nick,

    Using formulate, I want to store data into mysql database and send email through email handler. To submit data I have changed submission url like showed in screenshot. Form data is going to store in database but email handler is not working while submitting the data.

    Is there any solution to send data through email handler while submitting data by changing url? enter image description here

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Aug 23, 2017 @ 04:17
    Nicholas Westby
    0

    Formulate will only do whatever you tell it to do at whatever URL you're submitting it to. I have no insight at what you're doing at that URL.

    Also, I have no idea why you'd want to send it to a different URL, unless you were making some heavy customizations. If you simply wanted to store it to a different database, you could have just made a custom form submission handler (like the existing "Store Data" handler).

  • Namrata 8 posts 78 karma points
    Aug 23, 2017 @ 05:27
    Namrata
    0

    Thanks for reply.

    How do I create a custom form submission handler? I am looking to implement the below scenario with the existing submission controller which saves the form data to Mysql tables (we have our own database model) instead of formulate_submission table. I tried using the Store Data handler and even that is not accessible in our submission controller.

    enter image description here

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Aug 23, 2017 @ 15:09
    Nicholas Westby
    0

    The first thing you should do is NOT send the data to a different submission controller (though, I also have no idea why you would think the store data handler was "inaccessible"). Nothing you have described sounds custom enough to warrant that.

    You can see an example form submission handler here: https://github.com/rhythmagency/formulate/blob/96620f209c8e8132e2b6826e0c1d71080cb325b4/src/formulate.app/Forms/Handlers/StoreData/StoreDataHandler.cs

    In short, you implement the IFormHandlerType interface. When you implement that interface, you'll have to specify an AngularJS directive that will be used to render an interface for the handler in the Umbraco back office. You can see an example of one of those directives here: https://github.com/rhythmagency/formulate/blob/73905b025e4b7b05a860a5ce5ff53db953cdc4d1/src/formulate.app/Directives/handlers/storeDataHandler/storeDataHandler.js

  • Namrata 8 posts 78 karma points
    Aug 31, 2017 @ 04:42
    Namrata
    0

    Thanks Nick,

    I fetched email handler configuration in controller and sent email and it works fine...!!!!!!

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Aug 31, 2017 @ 15:09
    Nicholas Westby
    0

    That's great to hear, Namrata. I'm glad you found a solution that works for you :-)

Please Sign in or register to post replies

Write your reply to:

Draft