# sendmail\_path() problem

**URL:** <https://forum.kirupa.com/t/sendmail-path-problem/25674>\
**Category:** programming\
**Created:** [July 15, 2003, 4:41pm UTC](https://forum.kirupa.com/t/sendmail-path-problem/25674 "2003-07-15T16:41:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamza84](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@hamza84](https://forum.kirupa.com/u/hamza84)\
**Post date:** [July 15, 2003, 4:41pm UTC](https://forum.kirupa.com/t/sendmail-path-problem/25674/1 "2003-07-15T16:41:49Z")

</div>

Hey ya’ll, I was wondering how to set the sendmail\_path() in the php\_ini file so that the mail() function can work. Thanks

---

<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:** [July 15, 2003, 5:02pm UTC](https://forum.kirupa.com/t/sendmail-path-problem/25674/2 "2003-07-15T17:02:22Z")

</div>

thats not the problem. You just have to make sure that your STMP is set to localhost, and it usually is on most servers. Check out this to find out what your values are:

[http://www.kirupa.com/web/testphp.htm](http://www.kirupa.com/web/testphp.htm)

---

<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:** [July 15, 2003, 5:11pm UTC](https://forum.kirupa.com/t/sendmail-path-problem/25674/3 "2003-07-15T17:11:52Z")

</div>

hey jubba,  
I know about the localhost thing and stuff. The SMTP IS set to localhost. The mail() function still gives me an error. This is what it says:

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for bkah[@hotmail.com](mailto:e@hotmail.com)

---

<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:** [July 15, 2003, 5:33pm UTC](https://forum.kirupa.com/t/sendmail-path-problem/25674/4 "2003-07-15T17:33:07Z")

</div>

are you testing from your local machine or are you uploading to a server?

if its your machine then the mail() function won’t work when tested locally.

if its a server, then check with them, they may have the mail function disabled to prevent spam.

---

<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:** [July 15, 2003, 5:39pm UTC](https://forum.kirupa.com/t/sendmail-path-problem/25674/5 "2003-07-15T17:39:45Z")

</div>

so thats what it was! I’m testing it locally. That sucks. Oh well, thanks anyways Jubba. :thumb:
