Page 1 of 1

PHP: 4.3.10 Help Please

PostPosted: 01. March 2005 04:51
by rockyuk
Hi everyone,
Basically i am trying to send an email from my mailinglist software and just wanted to know if by default you get sendmail with PHP: 4.3.10 if not how do i get it and where or is it a case of enabling it. Basically the program i have installed runs on sendmail function only.

Thanks

Rockyuk

PostPosted: 01. March 2005 10:14
by Maller
I think you have the terms php and sendmail screwed up a bit :)
Sendmail is a stand alone program for linux/unix, there is a version for windows but it´s not free.
php however have the mail() function, all you need to do is edit these lines in php.ini
(reqires apache restart)

[mail function]
; For Win32 only.
SMTP = smtp.example.com
smtp_port = 25
sendmail_from = me@example.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =

PostPosted: 01. March 2005 13:10
by rockyuk
Hi Maller,
I have added the code that you gave me thanks but i still can't seem to get it to send mail through php.

Rockyuk :(

PostPosted: 02. March 2005 22:13
by Maller
when you say added you mean edit right ? dont add it to php.ini just find it in php.ini and edit thoose lines.
Also please paste the script you using to send the mail, maybe the error is in that

PostPosted: 09. March 2005 01:06
by Tony_P
Mallor,

Can I take it by that Penguin, your a Linux Fanatic, I only saw that used with Linux, I would love to learn the principles of it, But to my understanding it is a whole new language, and Heck I have a hard enough time with scripts on Win :roll:

PostPosted: 12. March 2005 00:24
by prathapml
Hello rockyuk,
It seems that some programs have sendmail hard-coded into them. They will necessarily look for "/usr/bin/sendmail" even on win32.

XAMPP already has the solution for this. Please see
Code: Select all
\installed-xampp\sendmail\readme.html


Hoping this helps....
If you have any hitches while using this, do post them.