Test PHP's mail function from localhost

前端 未结 7 1790

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:21

    If you're on Windows/using something like WAMP/UWAMP/XAMPP and need to test mail then Papercut is well worth a look:

    https://github.com/ChangemakerStudios/Papercut

    You can leave your SMTP settings in php.ini as the defaults (localhost/25) and it just works. It looks like an email client and shows all the parts of/details of a message in separate sections.

提交回复
热议问题