In this article, we will be demonstrating how we can send the mail to the multiple addresses from the database using the PHP.
PHPMailer library is used to send any email safely from the unknown e-mail to any mail id using PHP code through XAMPP web-server for this project.
Installation process for all the pre-requisites mentioned in this How to send an email using PHPMailer link.
Prerequisite: The following PHP files are required for this project.
Please follow the steps.
Go to the htdocs of the xampp folder. Create the folder as shown in the image, then install the PHPMailer library into the that folder.
Create the “index.php” file where the code implementation should be done.
Create the database so that we can manually store the email_ID of the user.
Create the dataBase=”mailer”
Create the table names “users”
After executing the code, mails will be send to multiple ids.
Email recieved by the user
Multiple recievers at the same time.