================
Allows enable fake sendmail on LAMP.
========
- Edit destination in script when do you want to place letters. Example:
prefix="/home/sanchiz/htdocs/sendmail/new"
numPath="/home/sanchiz/htdocs/sendmail"
- Set script as executable.
sudo chmod u+x,g+x fake_sendmail.sh
- Create symlink to /usr/bin.
sudo ln -s /your_path/fake_sendmail.sh /usr/bin/fake_sendmail
- Add to php.ini.
sendmail_path = fake_sendmail
- If you don't want create symlink, at once add to php.ini.
sendmail_path = /your_path/fake_sendmail.sh
- Restart apache.
sudo service apache2 restart