Skip to content

Instantly share code, notes, and snippets.

@fbrnc
Last active December 16, 2015 12:49
Show Gist options
  • Save fbrnc/5437360 to your computer and use it in GitHub Desktop.
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]",…
$ 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