Wagtail Contact form

809 views
Skip to first unread message

Kristian Arve

unread,
Apr 11, 2016, 6:52:46 AM4/11/16
to Wagtail support
I am trying to create a contact page with an email form. The documentation has not helped me a lot (http://docs.wagtail.io/en/v1.4.3/reference/contrib/forms.html).
Is there a wagtail demo site where I can have a look how it's done? Unfortunately there's no contact form in the official demo: 

Kristian Arve

unread,
Apr 11, 2016, 7:10:51 AM4/11/16
to Wagtail support
I didn't realize that setting up forms was that easy! So I have the form set up and everything working but I don't get any emails. I guess I have to set up the SMTP settings? But where?

Thanks for the help!

João Luiz Lorencetti

unread,
Apr 12, 2016, 7:09:36 AM4/12/16
to Wagtail support
Hi Kristian,

If you are using the 'dev.py' settings the EMAIL_BACKEND is set to the console, you can see an representation of the email message in the terminal that you ran the 'runserver' command.

You are right about needing to configure the SMTP settings and the Django documentation [1] can help you here.

Kristian Arve

unread,
Apr 12, 2016, 10:01:04 AM4/12/16
to Wagtail support
Thanks a lot for the help. I've got it working now. This page shows what to put in the settings file: https://sendgrid.com/docs/Integrate/Frameworks/django.html

Leonard Jackson

unread,
Nov 21, 2016, 12:58:25 PM11/21/16
to Wagtail support
Hey Kristen, may I ask where you put the sendmail() code? Was it in the class for the contact form?
Thanks

Leonard Jackson

unread,
Nov 21, 2016, 12:59:37 PM11/21/16
to Wagtail support
And sorry I spelled your name wrong, couldn't edit it and correct it lol
Reply all
Reply to author
Forward
0 new messages