

Restart php: $ sudo service php7.0-fpm restartĭevelop and scale your apps globally with DigitalOcean and/or Vultr – or use shared hosting with no server maintenance required at. Uncomment this line and add the path below: sendmail_path= /usr/sbin/sendmail -t -i If email is for some reason not working, try the steps below (modify the php version below as necessary): $ sudo nano /etc/php/7.0/fpm/php.iniĬtrl+w to search for and find ‘sendmail_path'. When sending emails from your server, make sure to check any spam folders for receipt. To see more usage examples, check out the links below. Wait a few seconds and you will see the output of the email being sent. ‘ (period/dot) on the empty line and press enter. Hit enter again and type the message: This is the message to be sent.

Hit enter again and type a subject: Subject: This is the subject field of the email To quickly send an email: $ sendmail -v Īfter hitting the enter key, on the line directly below, enter a From address (each line after you hit enter will be blank): From: Restart Apache $ sudo service apache2 restart 5. Run Sendmail's config and answer ‘Y' to everything: $ sudo sendmailconfig 4. (You willl notice that your hostname can also be identified on the line that starts with 127.0.1.1 where it appears twice)Ĭtrl+x, then ‘Y' to save and exit. On the line starting with 127.0.0.1, add the hostname to the end so it looks the same as: 127.0.0.1 localhost hostname Install Sendmail $ sudo apt-get install sendmail 2.
