Mail function, need a little help.
Posted: Mon Feb 06, 2006 9:49 pm
Hey guys,
I am new to this forum as well as PHP, so forgive me if this is a noob question. I used the search and tried everything I thought might be helpful but I was unsuccessful. Anyway I am just trying to send a simple email using the "mail()" fuction.
Also, do I need any other files to make the mail() function work.
Thanks
I am new to this forum as well as PHP, so forgive me if this is a noob question. I used the search and tried everything I thought might be helpful but I was unsuccessful. Anyway I am just trying to send a simple email using the "mail()" fuction.
Code: Select all
<?php
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Mail it
mail("matt@sks.com", "hello", "test" ,$headers);
?>Thanks