# Help a new guy set up server to use PHP's mail() function

**URL:** <https://forum.kirupa.com/t/help-a-new-guy-set-up-server-to-use-phps-mail-function/96534>\
**Category:** Uncategorized\
**Created:** [December 10, 2003, 4:10pm UTC](https://forum.kirupa.com/t/help-a-new-guy-set-up-server-to-use-phps-mail-function/96534 "2003-12-10T16:10:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bodom78](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@Bodom78](https://forum.kirupa.com/u/Bodom78)\
**Post date:** [December 10, 2003, 4:10pm UTC](https://forum.kirupa.com/t/help-a-new-guy-set-up-server-to-use-phps-mail-function/96534/1 "2003-12-10T16:10:15Z")

</div>

I have been trying to get a flash email form to work, most info gathered from tutorials and posts found on these forums but with no success. Now I have only learnt about Apache Server and PHP in the past 2 days so Im alittle overwhelmed from all the info intake :puzzled:

Im using WinXP with the latest Apache HTTP server and PHP, both installed to defult settings following the manuals included. Submitting a Flash form does nothing, submitting a basic html form returns the following error:

**Warning: mail(): “sendmail\_from” not set in php.ini or custom “From:” header missing in c:\server\apache\htdocs\mail.php on line 6**

I checked the php4.ini located in my Windows Directory and it’s current settings are:

```php

[mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
sendmail_from = actual email address here

```

I have used google to try and find a solution but it’s only confused me more. I came across “sendmail” quite alot but I see it’s not for windows. Do I need something similar to sendmail for windows? Im still confused as to what sendmail does.

Any help or advice or links that will help me out will be appreciated.

---

<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:** [December 10, 2003, 4:45pm UTC](https://forum.kirupa.com/t/help-a-new-guy-set-up-server-to-use-phps-mail-function/96534/2 "2003-12-10T16:45:16Z")

</div>

you can’t use mail() from your computer. You have to upload it to your server to use it. It has to do with STMPserver settings…
