# PHP email form is not working

**URL:** <https://forum.kirupa.com/t/php-email-form-is-not-working/63642>\
**Category:** programming\
**Created:** [September 8, 2004, 7:02pm UTC](https://forum.kirupa.com/t/php-email-form-is-not-working/63642 "2004-09-08T19:02:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![honey4u](https://avatars.discourse-cdn.com/v4/letter/h/51bf81/32.png) [@honey4u](https://forum.kirupa.com/u/honey4u)\
**Post date:** [September 8, 2004, 7:02pm UTC](https://forum.kirupa.com/t/php-email-form-is-not-working/63642/1 "2004-09-08T19:02:44Z")

</div>

Hi dudes!  
i am a self-instructed web designer and i have got a lot of knowledge from KIRUPA site, man thanks for this, anyway recently i tried out PHP email form in which i made two types of form one Qoutation and other feed back i did step by step evrything showed in Kirupa tutorial also in other that i found on net. NOW…when i post the feedback form it goes well and also shows me the message that i entered for successful submission like"thanks for sending feedback" but I m not recieving email. i have tried ten times with different styles all the time i recieve ok message but no email in my inbox i have tried it for both hotmail and yahoo, its not working,pleeeeeeeease help me…waiting for your reply :ear:

---

<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:** [September 8, 2004, 7:08pm UTC](https://forum.kirupa.com/t/php-email-form-is-not-working/63642/2 "2004-09-08T19:08:05Z")

</div>

Is this site hosted locally, on your machine? What I am getting at is that either smtp or sendmail needs to be setup in PHP, unless you define it directly in your PHP script.

---

<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:** [September 10, 2004, 8:42am UTC](https://forum.kirupa.com/t/php-email-form-is-not-working/63642/3 "2004-09-10T08:42:59Z")

</div>

Check ure junkmail 🙂 if its being send to some hotmail or yahoo for that mather…

---

<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:** [September 10, 2004, 8:45am UTC](https://forum.kirupa.com/t/php-email-form-is-not-working/63642/4 "2004-09-10T08:45:30Z")

</div>

Also check this uri [Send Mail](http://www.kirupaforum.com/forums/showthread.php?t=69414)

I posted a working mailer on that post, And will send the mail witout it ending up in junkmail.

Ofcourse u will have to make the ajustments to fit ure needs as in return($message) and all that crap. but ohwell thats gonna be easy to figure out 🙂

---

<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:** [September 11, 2004, 7:02pm UTC](https://forum.kirupa.com/t/php-email-form-is-not-working/63642/5 "2004-09-11T19:02:40Z")

</div>

> [@ol4pr0](#):
>
> Also check this uri [Send Mail](http://www.kirupaforum.com/forums/showthread.php?t=69414)
> 
> I posted a working mailer on that post, And will send the mail witout it ending up in junkmail.
> 
> Ofcourse u will have to make the ajustments to fit ure needs as in return($message) and all that crap. but ohwell thats gonna be easy to figure out 🙂

hi dear thanks for your response but i have uploaded ur page and even its giving error like"parse error in line 5 may be where u have #ie anyway please help me out i m very tense i have been working on this email form for last two weeks but its not sending me email…please i want to put one for working could u help me and i wonder if u could do this in a very easy way.  
thanks :kir:

---

<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:** [September 13, 2004, 7:43pm UTC](https://forum.kirupa.com/t/php-email-form-is-not-working/63642/6 "2004-09-13T19:43:34Z")

</div>

replace that $message part with ure message, i dont think you will have the same setup.

```php

$message = 'You\'re message goes here ';
#or
$message .= 'hello there<p>'.$_POST['message'];
$message .= 'Thank you';

```
