Mail Merchant is a free email integration API built with Python Flask and MongoDB. Users can create an account, verify their email address, and obtain an API link. The API takes in four fields (name, email, subject, message) using the POST method, and returns a 201 status code once the email is successfully sent.
- Clone the repository:
git clone https://github.com/Vignaraj-1018/mail-merchant.git
- Navigate to the project directory:
cd mail-merchant
- Backend
- Navigate to Backend folder:
cd back-end
- Create a virtual environment:
python3 -m venv env
- Activate the virtual environment:
env\Scripts\activate.bat
- Install dependencies:
pip install -r requirements.txt
- Change file name
.env.example
to.env
and add your credentials. - Start the Flask server:
python main.py
- Navigate to Backend folder:
- Frontend
- Navigate to Frontend folder:
cd front-end
- Install the Node Modules:
npm install
- Change the API link in
/src/constants/index.js
to you local API link - Change file name
.env.example
to.env
and add your credentials. - Start the App:
npm run dev
- Navigate to Frontend folder:
- Create an account on the Mail Merchant website using your email address or Google Account.
- Verify your email address if not Google Account.
- Log in to your account and go to profile page to obtain your API link.
- Use your API link to integrate the Mail Merchant API with your application.
/sendmail/:userid
: Sends an email using the POST method.
If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/<feature-name>
- Make your changes and commit them:
git commit -m '<commit-message>'
- Push to the branch:
git push origin feature/<feature-name>
- Submit a pull request.
Mail Merchant is released under the MIT License. See LICENSE for details.