# How to create a contact form that works

**URL:** https://forum.pinegrow.com/t/how-to-create-a-contact-form-that-works/3727
**Category:** Beginners
**Created:** [January 27, 2020, 1:53pm UTC](https://forum.pinegrow.com/t/how-to-create-a-contact-form-that-works/3727 "2020-01-27T13:53:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Lucena](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/lucena/32/2163_2.png) [@Lucena](https://forum.pinegrow.com/u/Lucena)
#### Post date: [January 27, 2020, 1:53pm UTC](https://forum.pinegrow.com/t/how-to-create-a-contact-form-that-works/3727/1 "2020-01-27T13:53:15Z")

</div>

Hello friends.

I am in need of help, to set up the contact form. Could someone help me or show me the way, everything is ready but I am not sending messages, I use version 5.92 - WordPress Personal, I couldn’t understand how to make the connection.

Thanks to anyone who can help.  
…  
**Html**

  
#### 

#### &nbsp;Envie sua mensagem

 Nome 

 E-mail 

 Assunto 

 Menssagem 

Enviar

...................................................................................................................................

**PHP**

  
#### 

#### &nbsp;Envie sua mensagem

 Nome 

 E-mail 

 Assunto 

 Menssagem 

Enviar

..................................................................................... Other PHP \<?php /\*\* \* Requires the PHP Mail Form library \* The PHP Mail Form library is available only in the pro version of the template \* The library should be uploaded to: lib/php-mail-form/php-mail-form.php \* For more info and help: https://templatemag.com/php-mail-form/ \*/ if( file\_exists($php\_mail\_form\_library = '../lib/php-mail-form/php-mail-form.php' )) { include( $php\_mail\_form\_library ); } else { die( 'Unable to load the PHP Mail Form Library!'); } $contactform = new PHP\_Mail\_Form; $contactform-\>ajax = true; // Replace with your real receiving email address $contactform-\>to = 'contato@nevadaecopecas.com.br'; $contactform-\>from\_name = $\_POST['name']; $contactform-\>from\_email = $\_POST['email']; $contactform-\>subject = $\_POST['subject']; $contactform-\>add\_message( $\_POST['name'], 'From'); $contactform-\>add\_message( $\_POST['email'], 'Email'); $contactform-\>add\_message( $\_POST['message'], 'Message', 10); echo $contactform-\>send(); ?\>

…

Thank you.

---

<div class="post-metadata">

### Author: ![red-rosefields](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/red-rosefields/32/5392_2.png) [@red-rosefields](https://forum.pinegrow.com/u/red-rosefields)
#### Post date: [January 27, 2020, 2:06pm UTC](https://forum.pinegrow.com/t/how-to-create-a-contact-form-that-works/3727/2 "2020-01-27T14:06:47Z")

</div>

Not what your asking for but it’s been a month i am using this script module and i find it very stable and very very Customizable and flexible.  
They also have a plugin for wp.

> **[Green Forms - Standalone Form Builder](https://codecanyon.net/item/green-forms-standalone-form-builder/23651798)**
>
> This is a standalone form builder script. If you need form builder for WordPress, please find it here: Green Forms – Form Builder for WordPress.
> 
> 
> 
> 
> 
> 
> 
> The most powerful and fastest form builder on...

---

<div class="post-metadata">

### Author: ![dcneuts](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/dcneuts/32/1173_2.png) [@dcneuts](https://forum.pinegrow.com/u/dcneuts)
#### Post date: [February 25, 2020, 5:13am UTC](https://forum.pinegrow.com/t/how-to-create-a-contact-form-that-works/3727/3 "2020-02-25T05:13:10Z")

</div>

Are you still looking for guidance on this? The only library that’s widely used by other peers my professional circle is PHPMailer, you can view that here:

> **[PHPMailer/PHPMailer](https://github.com/PHPMailer/PHPMailer)**
>
> The classic email sending library for PHP. Contribute to PHPMailer/PHPMailer development by creating an account on GitHub.

Considering that you’re using what looks like a different library, I assume that you’re wanting to code this out? If so, once you have the form configured and running, you should highly consider form validation, also.

Additionally, I would not recommend anything from CodeCanyon unless you can help it, as not only are they a pain to deal with, but the development standards have slipped over the years. Another two options before I would even think of going down that road are: Contact Form 7 and Gravity Forms.
