-
Fix for slow php mail() function – ubuntu – sendmail
hostname sudo vi /etc/hosts // Change 127.0.0.1 localhost [hostname (whatever your hostname is)] // To 127.0.0.1 localhost localhost.localdomain [hostname] sudo service apache2 restart
-
Setup PHP email function – ubuntu – sendmail
sudo apt-get install sendmail // Proceed to php.ini [mail function] ; Setup for Linux systems sendmail_path = /usr/sbin/sendmail -t sendmail_from = [email protected] [mail function] ; Setup for Windows systems SMTP = smtp.my.isp.net sendmail_from = [email protected]