I've been trying to use the mail() function mail a form on my website and it keeps failing, here is the code I'm using:

I did output each of the variables previously to make sure it got the strings from the form and it did get them correctly, so I assumed it must be the mail() call.

PHP Code:
$source $_REQUEST['source'];
$addcorrect $_REQUEST['addcorrect'];
$artist $_REQUEST['artist'];
$album $_REQUEST['album'];
$song $_REQUEST['song'];
$lyrics $_REQUEST['lyrics'];
$sent mail("imanidiot777@gmail.com","Add/Correct Lyrics","$firstname  $source  $addcorrect  $artist  $album  $song  $lyrics","From: $firstname");
"your message was sent";}
"your message failed";}

Any ideas? Thanks.

Last edited by shabbir; 3Aug2007 at 08:10.. Reason: Code block