Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
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).
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.
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
I fetched email handler configuration in controller and sent email and it works fine...!!!!!!
That's great to hear, Namrata. I'm glad you found a solution that works for you :-)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted