Gmail Email Sender by PHP
A ready-to-use PHP script for sending Emails with an HTML Template will use a Gmail account as the sender and you will not need any email server.
Powered by PHPMailer.
$ php sender.php
We re-designed the Google email template which can show you a use case and provide an easy-to-use template.
If you are looking for another style, there are many websites that provide thousands of Free email templates.
As you know to keep your account safe, you need to verify the auth from your Phone or by getting an SMS.
But the best solution is to create a token. You can create a Token for custom app at Gmail website that will able your PHP script easily auth/login and send emaisl.
What is PHPMailer?
PHPMailer is a code library to send emails safely and easily via PHP code from a web server. Sending emails directly by PHP code requires a high-level familiarity to SMTP protocol standards and related issues and vulnerabilities about Email injection for spamming.