On 9/12/2015 8:43 PM, Alexander Benatti wrote:
Hello, I'm trying to create a contact form with mezzanine, I'd like that this form is sent using json and email. How can I do this?

Mezzanine's Page subclass Form can be used to create forms quite easily. At the moment, it purely sends the form contents as email (optionally to the person who filled it in, plus cc's you add in the admin). However, it shouldn't be too difficult to add extra behaviour
at the same point.

Here's where the forms are emailed:
https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/forms/page_processors.py

The page processors are handled by the Page middleware:
https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/pages/middleware.py

It should be possible for you to copy/inherit from the form page processor, and make your own modifications, overriding the one
in Mezzanine.

Hope this helps.

Seeya. Danny.

--
You received this message because you are subscribed to the Google Groups "Mezzanine 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to