How to send a message to my e-mail programmatically
===

I need a little help with sending a message to my e-mail via php. Here's the code I've got so far:

     <?php
     $newline = $_GET['message'];

    $newline = str_replace("[N]","\n"
    ,"$newline");
    $newline = str_replace("[n]","\n"
    ,"$newline");
    mail($_GET['to'],$_GET[
    'subject'],$newline,"From: ".$_GET['from']);
    echo "<FONT FACE=\"Verdana\" SIZE=\"2\">".$_GET[
    'thanks']."</FONT>";?>

I uplaoded this php code to my sever, then use the execute_shell() function to send the message to my e-mail by then defining the various variables. Here's that code:

    msg_to="linera@low.com";
    msg_from="celebraces@gmail.com";
    msg_subject="Hey, what's up?";
    msg_message="This is a test email :D";
    msg_thanks="Your message has been sent :D";

        execute_shell("http://yourserver.com.au/
    yourgame/sendmail.php?to="+msg_to+"&from="
       +msg_from+"&subject="+msg_subject+"&
    message="+msg_message+"&thanks="+msg_thanks,"");

The problem is that, when the message is done, it just shows msg_thanks, which I defined as a variable. I'm new to php and dont know much. All I want to do is to remove this and rather, redirect the user to a particular thank you webpage when the message is done. How do I do this?