Php mail form

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I've been delving into php for the past two months, and gotten pretty
good at writing variables and such noonsense.

I was looking to make a mailing form for my website, instead of using
the crappy stuff.

Anyone have any ideas as to where I might find this?

I'm looking more for something that is as beginner as possible, so that
I may customize it as I become more accustomed to the language.

Re: Php mail form wrote:

Quoted text here. Click to load it

Hi, is your friend.
go to there and search for mail.

Erwin Moller

Re: Php mail form wrote:
Quoted text here. Click to load it


I can understand that the php site is a little  
hard to understand to newbies. So a sat down a  
wrote this script for you, just to prove how easy  
it is. I googled, but all the tutorials looked  
real hard, so I thought easier to learn the easier  

Have a play with this and let us know how you go.

<title>Send Me An Email</title>
if (empty($_POST['submit'])) {

echo "<H3>Send Mail</H3>\n";

echo "Fill in the Form and it will send you an  
echo "<form method=post  
echo "Subject: <input type='text'  
echo "Message: <br><textarea name='message'  
rows='5' cols='20'>Enter your message  
echo "<center><input type='submit' name='submit'  


// format and send email.
$to = "you@yourisp";
$subject = $_POST['subject'];
$message = $_POST['message'];

mail ($to, $subject, $message);

echo "Mail Sent!";

Site Timeline