Skip to content

Latest commit

 

History

History
36 lines (33 loc) · 696 Bytes

README.md

File metadata and controls

36 lines (33 loc) · 696 Bytes

fake_sendmail.sh

================

Allows enable fake sendmail on LAMP.

Usage

========

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