How to send email from localhost using PHP on Linux

前端 未结 7 2072
别那么骄傲
别那么骄傲 2020-12-09 19:25

I know that to send e-mail from localhost on Windows, you need to change SMTP server in php.ini however this is valid only on Windows:

[mail function]
; For         


        
7条回答
  •  时光取名叫无心
    2020-12-09 20:06

    Setup sendmail or exim. Search in your package manager for either of the option and install them. Senmail is common and setting it up should do the job. The mail command on linux is an MUA or mail user agent, a Mail User Agent (MUA) is an application that is used to send and receive email, more of a client. Whereas mail transfer agent transfers emails from one computer to another using a client–server application architecture.

提交回复
热议问题