Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Raphael Lomotey
Raphael Lomotey
2,587 Points

Materializecss/Bootstrap contact form with wordpress

Hi I have created a contact form using materializecss framework (kinda like bootstrap) I want users to be able to submit the form to my wordpress email. Did a bit of research and found out phpmailer can do this but i was wondering if there is a proper way to do it in WP. PS. im new to this and this is my first time building a contact form. Any help/tutorials will be much appreciated.

4 Answers

You could use PHP Mailer if you want to have more control over styling it yourself. To be honest, though, styling with CF7 wouldn't be hard at all, and it allows you to add classes to your elements so you could use custom classes to apply styles however you wanted.

Raphael Lomotey
Raphael Lomotey
2,587 Points

Oh ok, ill try that, thank you ! will try both actually :)

I wish I could help out, but I would look maybe into searching wordpress.org and search there, maybe it can help you. I haven't build a for WP yet, I hope this leads you in the right direction.

Raphael Lomotey
Raphael Lomotey
2,587 Points

Will do, thanks for your replying I am checking out wp_mail now

cool.

There are many great contact form plugins for WordPress that make basic contact forms, and even advanced forms for that matter, a breeze. Have you looked at Contact Form 7 or Gravity Forms?

Raphael Lomotey
Raphael Lomotey
2,587 Points

Hi Mike, yeah i have, I've actually used custom form 7 but if i use that i would have to re-style it to make it look how I want it to look. I also would love to learn how this is done without a plugin