Tips (Total 1)
# Tips-1) How to set up Gmail SMTP Send Mail from Your Gmail Full Set up
What is Gmail SMTP
The Gmail SMTP host is smtp.gmail.com. For secure connections, use port 587 (TLS) or 465 (SSL). You'll also need your Gmail username (your email address) and password, or an app password if you have 2-Step Verification enabled
What are the Settings for Gmail SMTP Service
- SMTP Server Address: smtp.gmail.com
- Port:
- 587 (TLS) - Recommended for security
- 465 (SSL) - Another secure option
- Authentication: Required
- Secure Connection: TLS/SSL
How to send Email using Gmail SMTP with PHPmailer
Send Email via Gmail SMTP Server in PHP using PHPMailer
Here is a PHP Script.
Installation and Configurations
- Download PHPmailer PHP Script
- Now, Unzip the downloaded zip file in your computer.
- Open index.php
- Edit lines from 33 to 37
- Sender Name
- Sender Email
- username: Your Gmail Account Full
- password: Your Gmail Password
- Now, Save index.php
- Then, Upload full folder of unzip edited to Your Domain root at Cpnael.
- Open Your domain in a Browser.
- Done
Output should be: