/** * ---------------------------------------------------------------------------------------- * 9. CODE NHẬN EMAIL KHÁCH HÀNG - SMTP * ---------------------------------------------------------------------------------------- */ add_action( 'phpmailer_init', function( $phpmailer ) { if ( ! is_object( $phpmailer ) ) { $phpmailer = (object) $phpmailer; } $phpmailer->Mailer = 'smtp'; $phpmailer->Host = 'smtp.gmail.com'; $phpmailer->SMTPAuth = true; $phpmailer->Port = 587; $phpmailer->Username = 'aug.ttduycas@gmail.com'; $phpmailer->Password = 'ufdvhkaiihwalsgw'; $phpmailer->SMTPSecure = 'tls'; $phpmailer->From = 'aug.ttduycas@gmail.com'; $phpmailer->FromName = 'Khách hàng điền Form'; });