January 28, 2023


The complete guide to the beginners as well as to the experienced Web Developers

Send email using SMTP

SMTP is Simple Mail Transfer Protocol with help of you can send email without having a local mail server. From below PHP script, you can send messages via your Google’s Gmail server.

The steps to send email useing SMPT credentials

Step 1. Download lib from PHPMailer and include PHPMailerAutoload.php file

Step 2. Replace below variable from script

$from_display_name, $from_email, $password, $to_display_name, $to_email