# 'from' header issue

**URL:** <https://forum.kirupa.com/t/from-header-issue/200384>\
**Category:** programming\
**Created:** [September 11, 2006, 8:32pm UTC](https://forum.kirupa.com/t/from-header-issue/200384 "2006-09-11T20:32:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blazes](https://avatars.discourse-cdn.com/v4/letter/b/35a633/32.png) [@blazes](https://forum.kirupa.com/u/blazes)\
**Post date:** [September 11, 2006, 8:32pm UTC](https://forum.kirupa.com/t/from-header-issue/200384/1 "2006-09-11T20:32:12Z")

</div>

Hey, i’ve done alot of php mailing, but now for some reason the ‘from’ header won’t work right. Lets say I set it to ‘asdf’. It’ll show up as ‘asdf@(servername?)’. Anyone know what to do?

```php
 $headers = "From: " . $_POST["name"];
          if(mail($email, 'Form info',$message,$headers)){

```
