IsSMTP(); $mail->SMTPSecure = $secure; $mail->Host = $host; //host masing2 provider email $mail->SMTPDebug = 0; $mail->Port = $port; $mail->SMTPAuth = true; $mail->Username = $username; //user email $mail->Password = $password; //password email $mail->SetFrom($from, $appname); //set email pengirim $mail->Subject = $subject; //subyek email $mail->AddAddress($emailuser, "User"); //tujuan email $mail->MsgHTML($content); //pesan dapat berupa html $mail->Send(); return true; var_dump($content); die(); } function template2($subject, $emailmessage, $address, $appname, $linkgoogle, $web) { $msg = ' '; return $msg; } }