I finally figured it out after a month! This is how it is done
1. Create a folder in your Documents named XAMPP Emails
2. Open the terminal and enter the following command
- Code: Select all
sudo chmod 777 "/home/USERNAME/Documents/XAMPP Emails/"
3. Open the php.ini file that is located in your /opt/lampp/etc directory
4. Press CTRL+F and then type "mail function"
5. Under the [mail function] remove comment from sendmail_path
6. Set sendmail_path to
- Code: Select all
sendmail_path = "cat > /home/USERNAME/Documents/XAMPP\ Emails/`date '+%Y-%m-%d - %H-%M-%S'`.eml"
BUT MAKE SURE TO REPLACE USERNAME with your own username
7. If Apache is running, restart it