Test PHP's mail function from localhost

前端 未结 7 1771

I need to test a function that uses PHP\'s mail()
How can I do this without uploading the script to a server and test it online?
What\'s even more I am developin

7条回答
  •  借酒劲吻你
    2020-12-04 17:29

    Setup a pop3 server in local Machine. Many available for free. and send mails within your local domain using sendmail.

    By default its not required to set the sendmail path in Linux. at least I never needed it. just use the mail() function and hit mails on local domain

提交回复
热议问题