Skip to content

Instantly share code, notes, and snippets.

@harmandeep-singh
Last active July 8, 2019 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harmandeep-singh/995dc263c266a580e6c774c71322dab9 to your computer and use it in GitHub Desktop.
Save harmandeep-singh/995dc263c266a580e6c774c71322dab9 to your computer and use it in GitHub Desktop.
Setup php mail Ubuntu digital ocean
//login to your droplet.
//1. output the hostname
hostname
//2. modify the hosts
nano /etc/host
//3. the first line in this file, should use the hostname on the end. For example: "Harman"
127.0.0.1 localhost localhost.domainname Lee
//4. install mail
sudo apt-get install sendmail
//5. configure the mail, answer yes to everything:
sudo sendmailconfig
//6. Restart apache2 / nginx
sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment