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 trialRaphael Lomotey
2,587 PointsMaterializecss/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
mikes02
Courses Plus Student 16,968 PointsYou 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.
Jacob Mishkin
23,118 PointsI 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
2,587 PointsWill do, thanks for your replying I am checking out wp_mail now
Jacob Mishkin
23,118 Pointscool.
mikes02
Courses Plus Student 16,968 PointsThere 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
2,587 PointsHi 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
Raphael Lomotey
2,587 PointsRaphael Lomotey
2,587 PointsOh ok, ill try that, thank you ! will try both actually :)