Page 1 of 1

stuck at the php.ini hurdle....

PostPosted: 14. March 2005 10:38
by richk
newbie here - i've got everything up and running but am trying to get email working through php - it keeps saying that i haven't defined sendmail_from in php.ini.....i have though (in \apachefriends\xampp\apache\bin\php.ini which i think is the right one).....any ideas?

how can you alternatively set it up within the page's code - ini_set?

thanks

PostPosted: 14. March 2005 13:04
by Maller
You should be able to send mail with php, are you sure you configured it right ?
you could post your mail configuration here....
check phpinfo() for the right path to the php.ini
Did you restart apache after you changed php.ini ?
If you for some reason you cant get it to work, witch you really should, you can always use the pear mail class
http://pear.sourceforge.net/manual/core.mail.smtp.php

PostPosted: 14. March 2005 14:37
by richk
thanks for the reply

this is how i configured it; the php.ini file is as per the path specified in phpinfo. which is why i stumped? is there anything else i need to do below, or do i have to move the php.ini file any other than where it is
(apachefriends\xampp\apache\bin\php.ini)

------------------------------------------------------------------------------------

[mail function]
; For Win32 only.
SMTP = smtp.homecall.co.uk

; For Win32 only.
sendmail_from =richard.king@homecall.co.uk

------------------------------------------------------------------------------------

PostPosted: 14. March 2005 23:30
by richk
sussed it now thanks before anybody else replies!

PostPosted: 16. March 2005 21:30
by joannew
How did you fix this, I have exactly the same problem. Current php.ini entries are:

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

; For Win32 only.
sendmail_from =richard.king@homecall.co.uk #(my own email address)

PostPosted: 17. March 2005 00:13
by taustin
joannew wrote:How did you fix this, I have exactly the same problem. Current php.ini entries are:

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

; For Win32 only.
sendmail_from =richard.king@homecall.co.uk #(my own email address)


Those settings should work. You do have to restart Apache for them to take effect. Are you sure the mail server is running on localhost?

PostPosted: 17. March 2005 15:17
by joannew
No. How do I check?

PostPosted: 17. March 2005 17:58
by taustin
joannew wrote:No. How do I check?


If you didn't start Mercury, it isn't running. It doesn't run automatically by default.