add_action( 'phpmailer_init', function ( $phpmailer ) {
$phpmailer->isSMTP();
$phpmailer->Host = 'smtp.gmail.com';
$phpmailer->SMTPAuth = true;
$phpmailer->Port = 587;
$phpmailer->SMTPSecure = PHPMailer\PHPMailer\PHPMailer::ENCRYPTION_STARTTLS;
$phpmailer->Username = 'balaji.vm.uplogic@gmail.com'; // உன் Gmail இங்க போடு
$phpmailer->Password = 'mamm wdiq pvqh jbvh'; // App Password இங்க போடு
$phpmailer->From = 'balaji.vm.uplogic@gmail.com'; // Same Gmail
$phpmailer->FromName = 'Uplogic Technologies'; // உன் site பேரு
} );