I am new to php and have not had the mail () function to work. Using RH7.3 the mail appears to go to /var/spool/mail/root.
Php info environment also says mail goes to the same local address. How do I make it work with smtp/sendmail?
Any help will be appreciated.
mail function
Moderator: General Moderators
My php.ini says:
[mail function]
; For Win32 only.
SMTP = localhost
; For Win32 only.
sendmail_from = me@localhost.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/lib/sendmail
There are no more references to sendmail
Still lost, thanks for your input
[mail function]
; For Win32 only.
SMTP = localhost
; For Win32 only.
sendmail_from = me@localhost.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/lib/sendmail
There are no more references to sendmail
Still lost, thanks for your input
Many thanks for your help. I could not send them, but now I can send from the terminal and users can as well. I still cannot send from the php mail() function.
I am not sure the core is correct in phpinfo() I have
sendmail_from bloggs@bloggy.net
path /usr/lib/sendmail
(this is the correct path to sendmail)
SMTP localhost
Mail /var/spool/mail/root
Any ideas: Maybe the php.ini, what would the php.ini usually say?
I am not sure the core is correct in phpinfo() I have
sendmail_from bloggs@bloggy.net
path /usr/lib/sendmail
(this is the correct path to sendmail)
SMTP localhost
Mail /var/spool/mail/root
Any ideas: Maybe the php.ini, what would the php.ini usually say?