Php code for sending content of form to email addresses.

Contact form is used in almost every website these days. The filled data needs to be sent to admin using email. In this post we are going to discuss the php code used to send a mail.

First of all lets create an html form which will be used by a user to enter details. We will use a simple and most commonly used contact form with few details  name, email, phone and message. Create a contact form page in php.

Now we need to add php code for sending email.

Add php code above the <html> tag. Try and please let me know via comments if it doesn’t work or gives an error.

Enjoy coding!

Aug,5,2014
Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: