Send Mail

Submitted by: 
Visitors have accessed this post 21385 times.

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.


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

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

i need this code

Hello Friends,

Please send me login page source code ([email protected])

Can i use it in my own website?

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

is this project needs to be publish to the net before it can send info to email? ? ?

please reply asap. thanks^^

Yes. But if your local computer has sendmail then you can still send mail using it.

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]

For big project please read Thesis Writing.

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.


Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • You may insert videos with [video:URL]
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <th> <img> <h1> <h2> <h3> <iframe> [video]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.