Postingan lainnya
Kelas Premium!
Belajar bikin website dari nol sekarang
Gunakan kupon "lebihcepat" untuk diskon 25%!
Eror mengirim email setelah input ke database
Yth kepada para master
mohon bantuannya saya mengalami eror mengirim email pemberitahuan saat setelah input data web ke database
Mohon untuk bantuannya
ini eror nya
2022-02-14 01:29:45 CLIENT -> SERVER: EHLO ujicoba.co.id
2022-02-14 01:29:45 CLIENT -> SERVER: AUTH LOGIN
2022-02-14 01:29:45 CLIENT -> SERVER: <credentials hidden>
2022-02-14 01:29:46 CLIENT -> SERVER: <credentials hidden>
2022-02-14 01:29:46 CLIENT -> SERVER: MAIL FROM:<info@ujicoba.co.id>
2022-02-14 01:29:46 CLIENT -> SERVER: RCPT TO:<info@ujicoba.co.id>
2022-02-14 01:29:46 CLIENT -> SERVER: DATA
2022-02-14 01:29:47 CLIENT -> SERVER: Date: Mon, 14 Feb 2022 08:29:44 +0700
2022-02-14 01:29:47 CLIENT -> SERVER: To: info@ujicoba.co.id
2022-02-14 01:29:47 CLIENT -> SERVER: From: PBP Karyawan <info@ujicoba.co.id>
2022-02-14 01:29:47 CLIENT -> SERVER: Subject: Pengajuan Lembur Baru
2022-02-14 01:29:47 CLIENT -> SERVER: Message-ID: <sppfMAvDJBc6wrHQmlLSR5QT0S9os3iwqNRYlhsdHQ@pelabuhanbukitprima.co.id>
2022-02-14 01:29:47 CLIENT -> SERVER: X-Mailer: PHPMailer 6.0.6 (https://github.com/PHPMailer/PHPMailer)
2022-02-14 01:29:47 CLIENT -> SERVER: MIME-Version: 1.0
2022-02-14 01:29:47 CLIENT -> SERVER: Content-Type: text/html; charset=iso-8859-1
2022-02-14 01:29:47 CLIENT -> SERVER:
2022-02-14 01:29:47 CLIENT -> SERVER: Anda Memiliki Satu Pengajuan Lembur untuk di Aprroval dengan
2022-02-14 01:29:47 CLIENT -> SERVER: <br>
2022-02-14 01:29:47 CLIENT -> SERVER: Nomor Lembur : 2022020029.
2022-02-14 01:29:47 CLIENT -> SERVER: <br>
2022-02-14 01:29:47 CLIENT -> SERVER: Satuan Kerja : IT.
2022-02-14 01:29:47 CLIENT -> SERVER: <br>
2022-02-14 01:29:47 CLIENT -> SERVER: Nama : DANANG SINDU SESOTYO.
2022-02-14 01:29:47 CLIENT -> SERVER: <br>
2022-02-14 01:29:47 CLIENT -> SERVER: Jabatan : IT.
2022-02-14 01:29:47 CLIENT -> SERVER: <br>
2022-02-14 01:29:47 CLIENT -> SERVER: Jenis Lembur : Lembur Hari Kerja
2022-02-14 01:29:47 CLIENT -> SERVER: <br>
2022-02-14 01:29:47 CLIENT -> SERVER: Tanggal Lembur : 2022-02-13
2022-02-14 01:29:47 CLIENT -> SERVER: <br>
2022-02-14 01:29:47 CLIENT -> SERVER: Mulai Jam : 16:00
2022-02-14 01:29:47 CLIENT -> SERVER: <br>
2022-02-14 01:29:47 CLIENT -> SERVER: Sampai Jam : 17:00
2022-02-14 01:29:47 CLIENT -> SERVER: <br>
2022-02-14 01:29:47 CLIENT -> SERVER: Uraian Pekrjaan : UJI COBA.
2022-02-14 01:29:47 CLIENT -> SERVER: <br>
2022-02-14 01:29:47 CLIENT -> SERVER: Kepada SDM mohon untuk dilakukan Aprroval Klik <a href=https://ujicoba.co.id/pegawai/SDM/pilih_lembur.php>disini</a>
2022-02-14 01:29:47 CLIENT -> SERVER: <br>
2022-02-14 01:29:47 CLIENT -> SERVER: Terima Kasih.
2022-02-14 01:29:47 CLIENT -> SERVER: <br>
2022-02-14 01:29:47 CLIENT -> SERVER:
2022-02-14 01:29:47 CLIENT -> SERVER: .
2022-02-14 01:29:47 SMTP ERROR: DATA END command failed: 550 5.7.1 Mail contain spam content 2336060022
ini Source code kirim email
$isipesan ="Anda Memiliki Satu Pengajuan Lembur untuk di Aprroval dengan
<br>
Nomor Lembur : $no_lembur.
<br>
Satuan Kerja : $level.
<br>
Nama : $nama.
<br>
Jabatan : $jabatan.
<br>
Jenis Lembur : $jenis_lembur
<br>
Tanggal Lembur : $tgl_pelaksanaan
<br>
Mulai Jam : $mulai_jam
<br>
Sampai Jam : $sampai_jam
<br>
Uraian Pekrjaan : $keterangan.
<br>
Kepada SDM mohon untuk dilakukan Aprroval Klik <a href=https://ujicoba.co.id/pegawai/SDM/pilih_lembur.php>disini</a>
<br>
Terima Kasih.
<br>";
if (empty($_POST['jenis_lembur']) || empty($_POST['tgl_pelaksanaan']) || empty($_POST['mulai_jam'])||empty($_POST['sampai_jam'])) {
?>
<script language="JavaScript">
alert('Data Harap Dilengkapi');
document.location='data_lembur.php';
</script>
<?php
}
//Jika Validasi Terpenuhi
else {
include "../include/koneksi.php";
// $db = new mysqli("localhost", "root", "", "karyawan");
//cek id_cuti di database
$cek=mysqli_num_rows (mysqli_query($db,"SELECT id_lembur FROM lembur WHERE id_lembur='$_POST[no_lembur]'"));
if ($cek > 0) {
?>
<script language="JavaScript">
alert('Data Cuti telah di pakai!, silahkan diulang kembali');
document.location='data_lembur.php';
</script>
<?php
}
//Masukan data ke Table Karyawan
$input ="INSERT INTO lembur (id_lembur, nip, nama, jabatan, pp,Level,email_karyawan,jenis_lembur,tanggal_pengajuan, tanggal_pelaksanaan, mulai_lembur, selesai_lembur, keterangan)
VALUES ('$no_lembur','$nip','$nama','$jabatan','$Peringkat_pegawai','$level','$email','$jenis_lembur','$tgl','$tgl_pelaksanaan','$mulai_jam','$sampai_jam','$keterangan')";
$query_input =mysqli_query($db,$input);
$query_input =mysqli_query($db,$input);
if ($query_input) {
require("../PHPMailer/src/PHPMailer.php");
require("../PHPMailer/src/SMTP.php");
$mail = new PHPMailer\PHPMailer\PHPMailer();
$mail->IsSMTP(); // enable SMTP
$mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only
$mail->SMTPAuth = true; // authentication enabled
$mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for Gmail
$mail->Host = "smtp.titan.email";
$mail->Port = 465; // or 587
$mail->IsHTML(true);
$mail->Username = "info@ujicoba.co.id";
$mail->Password = "Mereka5678";
$mail->setFrom('info@ujicoba.co.id', 'Karyawan');
$mail->Subject = "Pengajuan Lembur Baru";
$mail->Body = $isipesan;
$mail->addAddress('info@ujicoba.co.id');
if(!$mail->Send())
{
echo "Mailer Error: " . $mail->ErrorInfo;
} else {
echo "Message has been sent";
}
//Jika Sukses
?>
<script language="JavaScript">
alert('Data Lembur Berhasil diinput');
document.location='data_lembur.php';
</script>
<?php
}
else {
//Jika Gagal
echo "Data Lembur Gagal diinput, Silahkan diulangi!";
}
//Tutup koneksi engine MySQL
// mysql_close($Open);
}
}
0
Belum ada Jawaban. Jadi yang pertama Jawaban
Login untuk ikut Jawaban