https://github.com/hatixntsoa/php.mail
A Mail Client App Based on PHP
https://github.com/hatixntsoa/php.mail
gmail mysql php php-mailer smtp
Last synced: about 1 month ago
JSON representation
A Mail Client App Based on PHP
- Host: GitHub
- URL: https://github.com/hatixntsoa/php.mail
- Owner: hatixntsoa
- License: mit
- Created: 2024-02-14T05:40:56.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-09-11T05:08:20.000Z (10 months ago)
- Last Synced: 2025-09-11T08:47:26.786Z (10 months ago)
- Topics: gmail, mysql, php, php-mailer, smtp
- Language: PHP
- Homepage:
- Size: 2.21 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PHP Mail Web Application using MariaDB as Database
Using [PHP Mailer](https://github.com/PHPMailer/PHPMailer)
# How to run it in your local machine ?
### Cloning the repository
```bash
git clone https://github.com/hatixntsoa/php.mail.git
```
### Setup
#### Dependencies
- php
```bash
sudo apt install php php-mysql
```
- Database
```bash
sudo apt install mariadb-client mariadb-server
```
### Config
#### Create the user and the Database
- Start the mariadb-server
```bash
sudo systemctl start mariadb
```
- Login into the local server as root and create a new user _phpmail_
```bash
sudo mariadb -u root -p -e "CREATE USER 'phpmail'@'localhost' IDENTIFIED BY 'mail';"
```
- Create the Database
```bash
sudo mariadb -u root -p -e "CREATE DATABASE IF NOT EXISTS mail;"
```
- Give the right privilege into the new user
```bash
sudo mariadb -u root -p -e "GRANT ALL PRIVILEGES ON mail.* TO 'phpmail'@'localhost';"
```
```bash
sudo mariadb -u root -p -e "FLUSH PRIVILEGES;"
```
- Move the source code into the `/var/www/htm/` directory
```bash
sudo rsync -a -v --exclude='.git' --exclude='README.md' ./ /var/www/html
```
- Launch the web server for example Apache2
```bash
sudo systemctl start apache2
```
- Finally type localhost in your web-browser