Skip to content

quickalerts/otpsender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP OTP Email Sender

This project uses PHP and PHPMailer to send OTPs (One Time Passwords) via email. The OTP is randomly generated and sent to the email address provided by the user.

Requirements

  • PHP 7.x or higher
  • Composer
  • PHPMailer

Installation

  1. Clone the repository:

    git clone https://github.com/quickalerts/otp-sender.git
    cd otp-sender
  2. Install dependencies using Composer:

    composer install

Project Structure

Project Structure

Usage

  1. Open the project directory in your web server root (e.g., htdocs for XAMPP or www for WAMP).
  2. Navigate to the project URL in your web browser (e.g., http://localhost/otp-sender).
  3. Enter your email address and click "Send OTP" to receive an OTP in your email.

Configuration

  • Modify the email configuration in index.php:
    $mail->Host       = 'smtp.gmail.com'; // SMTP server
    $mail->Username   = '[email protected]'; // Your email
    $mail->Password   = 'your-smtp-password'; // SMTP password

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages