Check is emails in a CSV is valid via SMTP response. Create smaller CSV from one large CSV file.

Job ID: 32632103

Budget: $30 – $250 USD

I need someone to create a script that can run via linux terminal/console. It can be PHP even.
Script 1:
1: The script needs to open an excel/CSV file, check each email to see if it's valid via SMTP.
2: If the email is invalid, it will delete the invalid email from the list.

Here is an example of a PHP script that you can use to check if the email is valid via SMTP servers:
https://www.codexworld.com/verify-email-address-check-if-real-exists-domain-php/

Script 2:
1: Open a large CSV/excel file, create a new file(s), copy over the header, and copy 1900 rows/records and save the file.
2: The script should continue creating smaller files until all rows/records in the large CSV/excel file have been created.
Related categories: PHP Linux Shell Script