Skip to main content

Send Mail

The following code will allow you to send mail using PHP in your website. Simple download the code and modify it to suit your needs. You can use this as a feedback form, contact form, etc.

I used Macromedia Dreamweaver in editing the code. I recommend this editor especially for beginners. There’s a lot of free HTML editor but Dreamweaver has a lot of features which the free version doesn’t have.

This script will validate email using JavaScript. 


Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


Submitted byAnonymous (not verified)on Tue, 07/28/2009 - 18:17

Submitted byaprilon Sat, 08/08/2009 - 12:51

hi, can u pls help me with my project? can u pls send me some php projects and its description using PHP and MYSQL? please... tnx.. [email protected] tnx a lot.
Submitted byAnonymous (not verified)on Wed, 08/19/2009 - 00:52

hi!! can u pls help me by giving a source code of hotel reservation system written in php & my sql(in xampp server). i need it for my project work.pls help [email protected]
Submitted byAnonymous (not verified)on Tue, 09/15/2009 - 22:58

is this project needs to be publish to the net before it can send info to email? ? ? please reply asap. thanks^^
Submitted byadminon Thu, 09/17/2009 - 11:36

In reply to by Anonymous (not verified)

Yes. But if your local computer has sendmail then you can still send mail using it.
Submitted bybrayogreaton Wed, 11/25/2009 - 16:03

Hi i have just sent you a similar msg under the visual basic category. my request is that you kindly assist me with the online hotel reservation and booking system using php, Mysql, HTML, etc. I shall be grateful. ciao let me know ASAP
Submitted byAnonymous (not verified)on Thu, 01/20/2011 - 17:23

Can i use it in my own website?

Submitted bycharfeddine (not verified)on Mon, 05/07/2012 - 18:53

i need this code

Submitted byAnonymous (not verified)on Fri, 02/01/2013 - 14:07

pls send me a code like yahoo mail that the user can send an email and the admin can view his email and he can reply pls help me for scholl purposes only thank you

Submitted byArtaaaa (not verified)on Sun, 10/05/2014 - 23:12

hej thnx for the code but I dot receive any email in my inbox?
Is this workin yet or not?

Add new comment

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.