Jump to content


php mail() not working for linux machine

  • Please log in to reply
2 replies to this topic

#1 phpnewb999

  • Members
  • PipPip
  • Member
  • 10 posts

Posted 24 October 2006 - 08:47 PM

What would i need to change in the php.ini file to make the mail() function to work on a linux machine?  So far the windows server mail() function works fine after entering the "".

[mail function]
; For Win32 only.

; For Win32 only.
sendmail_from =

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =

Thanks in Advance

#2 wildteen88

  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 25 October 2006 - 06:18 PM

The SMTP option if for Windows only.

If your are using a unix based OS then you need to use the sendmail_path option instead

#3 phpnewb999

  • Members
  • PipPip
  • Member
  • 10 posts

Posted 25 October 2006 - 08:22 PM

Yes i understand.  The windows machine i have the smtp set to which is the mail server and everything works fine but for the linux machine.  What would i have to set the path to? 

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users