# Problem sending email - yes i know it has been already talked about

**URL:** <https://forum.kirupa.com/t/problem-sending-email-yes-i-know-it-has-been-already-talked-about/213678>\
**Category:** Uncategorized\
**Created:** [January 22, 2007, 12:53pm UTC](https://forum.kirupa.com/t/problem-sending-email-yes-i-know-it-has-been-already-talked-about/213678 "2007-01-22T12:53:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Binji](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@Binji](https://forum.kirupa.com/u/Binji)\
**Post date:** [January 22, 2007, 12:53pm UTC](https://forum.kirupa.com/t/problem-sending-email-yes-i-know-it-has-been-already-talked-about/213678/1 "2007-01-22T12:53:09Z")

</div>

but i just cant figure out what im doing wrong. I followed the Kirupa tutorial and this guy’s source files: [http://www.gregrochford.co.uk/london/london](http://www.gregrochford.co.uk/london/london) but i still cant figure out this thing. I get the “thanks for sending” screen but the email never arrives!

Here is my email.php file:

```auto

<?php 
$to = "gorjanc@gmail.com"; 
$subject = "Povpra&#353;evanje po gara&#382;nih vratih";

$headers = "From: " . $_POST["email"]; 
$headers .= "<" . $_POST["email"] . ">
"; 
$headers .= "Reply-To: " . $_POST["email"] . "
"; 
$headers .= "Return-Path: " . $_POST["email"]; 

$message .= "This message has been sent from your Contact Form

";
$message .= "Name: " . $_POST["ime"] . "
";
$message .= "Email: " . $_POST["email"] . "
";
$message .= "Message: " . $_POST["komentarji"] . "
";

mail($to, $subject, $message, $headers); 
?>

```

Code on my “send” button:

```auto

on(release){
    if(this._parent.form.vnos_email.text == ""){
        this._parent.obvestilo.text = "Niste izpolnili vseh obveznih polj!";
    }else{
        this._parent.form.loadVariables("email.php", "POST");
    }
}

```

Code on the form:

```auto

onClipEvent(data){
        _root.gotoAndStop("potrditev");
}

```

My server supports PHP, so thats not it. I even tried putting it on some free PHP servers but still nothing. Help please!
