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.
- PHP 7.x or higher
- Composer
- PHPMailer
-
Clone the repository:
git clone https://github.com/quickalerts/otp-sender.git cd otp-sender
-
Install dependencies using Composer:
composer install
- Open the project directory in your web server root (e.g.,
htdocs
for XAMPP orwww
for WAMP). - Navigate to the project URL in your web browser (e.g.,
http://localhost/otp-sender
). - Enter your email address and click "Send OTP" to receive an OTP in your email.
- 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
This project is licensed under the MIT License. See the LICENSE file for more details.