Skip to content

๐Ÿš€This is a PHP-based system for handling email unsubscribe requests and tracking unsubscribe events using Google Analytics.

License

Notifications You must be signed in to change notification settings

ronknight/unsubscribe-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”ง A PHP-based system for managing email unsubscriptions efficiently.

Project Overview โ€ข Files โ€ข Installation โ€ข Usage โ€ข Logs โ€ข Visualization โ€ข Disclaimer

๐Ÿ” Project Overview

This project is a PHP-based system designed to manage email unsubscription requests. Users can unsubscribe from mailing lists, and the system logs these requests for record-keeping and compliance purposes. It is designed to be lightweight and easy to integrate into existing applications.

๐Ÿ“‚ Files

1. unsub.php

Handles the logic for processing unsubscribe requests and logs relevant information into a file for audit purposes.

2. index.html

A simple front-end form that allows users to enter their email addresses and submit a request to unsubscribe from email lists.

3. unsubscribe.log

A log file that tracks each unsubscription event, including the email address, timestamp, and IP address of the request.

โš™๏ธ Installation

  1. Clone the repository:

    git clone https://github.com/ronknight/unsubscribe-system.git
  2. Navigate to the project directory:

    cd unsubscribe-system
  3. Start the PHP server (if you're using PHP's built-in server):

    php -S localhost:8000
  4. Visit http://localhost:8000 in your browser to access the system.

๐Ÿ“ Usage

  1. Open the form in your browser (index.html).
  2. Enter the email address you want to unsubscribe from your mailing list.
  3. Submit the form, and the system will log the unsubscription event.

๐Ÿ“œ Logs

The unsubscribe.log file contains records of every unsubscription request processed by the system. Each entry includes:

  • The user's email address
  • The timestamp of the request
  • The IP address from which the request was made

๐Ÿ“Š Visualization

graph TD
    A[User Submits Email] -->|Form Submission| B[unsub.php]
    B --> C{Valid Email?}
    C -- Yes --> D[Process Unsubscribe]
    D --> E[Log Unsubscription Event]
    C -- No --> F[Display Error]
    E --> G[Store in unsubscribe.log]
Loading

The flowchart above demonstrates the process of how the unsubscribe system operates:

  1. The user submits their email address via the form.
  2. The system checks if the email is valid.
  3. If valid, it processes the unsubscription and logs the event. If not, an error message is displayed.

โš ๏ธ Disclaimer

This project is intended for managing email unsubscriptions. Ensure compliance with privacy regulations such as GDPR and the CAN-SPAM Act. The system is designed to assist in fulfilling email marketing legal requirements but should be used responsibly.

About

๐Ÿš€This is a PHP-based system for handling email unsubscribe requests and tracking unsubscribe events using Google Analytics.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published