Sending emails in PHP is relatively simple, there are just a few things you need to remember.
The function we will be using in this script is mail ()
The first thing we need to do is is define our message in a function…
$message = "Write your message here";
Now we need to use the wordwrap () function in case any of the lines are larger than 70 characters
$message = wordwrap($message, 70);
Now we use the mail () function to send the email.
mail('mail@example.com', 'Write your subject here', $message)
And thats it in its simplist form.
You could work on this and add more functionality like adding text boxes and allowing who ever is using it to type in a message and any email address without seeing the full PHP code. Mabey using this you will be the next Hotmail :p






































October 15th, 2008 at 5:44 pm
Great tutorial. Thanks
November 5th, 2008 at 7:04 am
good, thx, but how do I make it work?
November 26th, 2008 at 1:47 pm
I found your site on faves.com bookmarking site.. I like it ..gave it a fave for you..ill be checking back later