# Flash Emailer Help

**URL:** <https://forum.kirupa.com/t/flash-emailer-help/268579>\
**Category:** programming\
**Created:** [August 15, 2008, 1:47pm UTC](https://forum.kirupa.com/t/flash-emailer-help/268579 "2008-08-15T13:47:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![elgringoson](https://avatars.discourse-cdn.com/v4/letter/e/e47c2d/32.png) [@elgringoson](https://forum.kirupa.com/u/elgringoson)\
**Post date:** [August 15, 2008, 1:47pm UTC](https://forum.kirupa.com/t/flash-emailer-help/268579/1 "2008-08-15T13:47:58Z")

</div>

Afternoon all,

I’m currently having problems with the .php form for a simple emailer. I can get it to work on my servers after following the tutorial, but at work it’s a no go. After spending the last hour messing around with the code I’m stumped. I am trying to change the ‘from’ address to [Admin@xxxxx.com](mailto:Admin@xxxxx.com) instead of the users email, this is the code I’m working with:

```php
<?php
$sendTo = 'David@xxxxx.com';
$subject = 'Test Email';
$headers = 'From: Admin@xxxxx.com' . "
" .
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-path: " . $_POST["email"];
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?> 

```

I tried using a mix between the code at [http://www.php.net/manual/en/function.mail.php](http://www.php.net/manual/en/function.mail.php) and kirupa. I’m new at php so any help would be much appreciated :beer2:
