Source Code Link :- https://elevenstechwebtutorials.com/d...
Another Link to send email using PHP with PHP Mailer :- • Sent Mail in PHP Using PHPMailer
If your code is not working proper. Please replace these code
Old Code
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'ssl://smtp.gmail.com';
$config['smtp_port'] = '465';
$config['smtp_timeout'] = '60';
$config['smtp_user'] = 'Enter your email'; // Important
$config['smtp_pass'] = 'Enter your email password'; //Important
$config['charset'] = 'utf-8';
$config['newline'] = "\r\n";
$config['mailtype'] = 'html'; // or html
$config['validation'] = TRUE; // bool whether to validate email or not
To new Code (This code only work on live server)
$config['protocol'] = 'sendmail';
$config['smtp_host'] = 'localhost';
$config['smtp_user'] = 'Enter your email';
$config['smtp_pass'] = 'Enter your email password';
$config['smtp_port'] = 25;
************ Must Watch Videos For Web Development ************
➡️ Check our Codeigniter Playlist Here : • Codeigniter Tutorial in Hindi - Introducti...
➡️ Check our Laravel Playlist Here : • Setup & Installation in Laravel Framework
➡️ Insert multiple checkbox data using Codeigniter : • Insert multiple checkbox data using Codeig...
➡️ Import excel data into database using PHP : • Import excel data into database using PHP
➡️ Compress Image size while Uploading with PHP : • Compress Image size while Uploading with PHP
➡️ Display a popup only once with JQuery and Cookies : • Display a popup only once with JQuery and ...
➡️ Show and Hide password using JQuery : • Show and Hide password using JQuery