# PHP form mailer problems

**URL:** https://forum.kirupa.com/t/php-form-mailer-problems/106772
**Category:** Uncategorized
**Created:** [April 8, 2004, 6:58pm UTC](https://forum.kirupa.com/t/php-form-mailer-problems/106772 "2004-04-08T18:58:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![slickeye](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@slickeye](https://forum.kirupa.com/u/slickeye)
#### Post date: [April 8, 2004, 6:58pm UTC](https://forum.kirupa.com/t/php-form-mailer-problems/106772/1 "2004-04-08T18:58:16Z")

</div>

i just added a mail for on my site, [http://profile.slickeye.com](http://profile.slickeye.com). its still rough and not public yet but i cant get my mailer to work. heres my php

\<?php

$sendTo = "mail@slickeye.com";  
$subject = “Profile Email”;

$headers = “From: " . $\_POST[“name”];  
$headers .= “\<” . $\_POST[“email”] .”\>  
";

$headers .= "Reply-To: " . $\_POST[“email”];

$message = $\_POST[“comments”];  
$aim = $\_POST[“aim”];  
$phone = $\_POSR[“phone”];

mail($sendTo, $subject, $comments, $headers);  
?\>

any help boys??

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 8, 2004, 7:54pm UTC](https://forum.kirupa.com/t/php-form-mailer-problems/106772/2 "2004-04-08T19:54:56Z")

</div>

whats your flash code?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 8, 2004, 7:59pm UTC](https://forum.kirupa.com/t/php-form-mailer-problems/106772/3 "2004-04-08T19:59:54Z")

</div>

Ok, first fix $\_POSR[phone] to $\_POST…

next:  
do you have the mail() function enabled on your server?  
what happens if you upload this to your site, and you open the page?

```php

<?php
mail("YOUR@EMAIL.HERE","test","Ok, it works"); 
?>

```

Lastly:  
What happens if you do this?

```php

<?php

$sendTo = "mail@slickeye.com";
$subject = "Profile Email";

$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] .">
";

$headers .= "Reply-To: " . $_POST["email"];

$message = $_POST["comments"];
$aim = $_POST["aim"];
$phone = $_POST["phone"];

print $_POST["phone"];
print $_POST["aim"];
print $_POST["email"];
print $_POST["name"];

//mail($sendTo, $subject, $comments, $headers);
?>

```

give those a shot, and post back here if none of them work.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 8, 2004, 8:59pm UTC](https://forum.kirupa.com/t/php-form-mailer-problems/106772/4 "2004-04-08T20:59:50Z")

</div>

don’t worry you’re not the only one with thos problems 😛  
I still had the problem this morning
