Last active
December 16, 2015 12:49
-
-
Save fbrnc/5437360 to your computer and use it in GitHub Desktop.
Sending mails in php is slow on your dev machine? Add the hostname to the first line (where "localhost" is) in /etc/hosts. For some reason adding a separate line for your hostname does not have any effect. Find our what your hostname is using "hostname" on commandline.
Quick test from command line: php -r 'mail("[email protected]",…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo vi /etc/hosts | |
# make sure your hostname goes in the first line | |
127.0.0.1 localhost.localdomain localhost addyourhostnamehere | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment