Python Mail Tracker is a powerful tool for tracking emails and website views, providing detailed information such as IP addresses, locations, headers, devices, browsers, timestamps, and more. This FastAPI-based application is designed to help you monitor and analyze user interactions with your emails or website, giving you valuable insights into user behavior.
- Track emails and website views with ease.
- Collect comprehensive information about each interaction.
- Analyze user data to improve your communication and website content.
- FastAPI backend for high-performance tracking.
- Easy-to-use API for integrating tracking into your applications.
To get started with Python Mail Tracker, follow these steps:
- Clone the repository:
git clone https://github.com/MohammadrezaAmani/MailTracker.git
cd MailTracker
1- Install the required dependencies:
pip install -r requirements.txt
-
Configure your settings (see Configuration below).
-
Run the FastAPI application:
uvicorn main:app --host 0.0.0.0 --port 8000 --reload
Once you have the application up and running, you can start tracking emails or website views by making API requests. Here's a basic example of how to track an email:
import requests
# Replace with your server's address
base_url = 'http://localhost:8000'
# Track an email
response = requests.post(f'{base_url}/track/email', json={
'recipient_email': '[email protected]',
'email_subject': 'Important News',
'email_content': 'Check out our latest newsletter!',
})
print(response.json())
For more advanced usage and API endpoints, please refer to the API Documentation section below.
For detailed information on available API endpoints and how to use them, please check the API Documentation.
To customize the behavior of Python Mail Tracker, you can edit the config.py file. Here, you can configure database settings, logging, and other application-specific options.
We welcome contributions to make Python Mail Tracker even better! If you'd like to contribute, please follow our Contribution Guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.