📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv3.demodesign.com.tr
/
yonetim
📝
topluemail.php
← Geri Dön
<!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Toplu Eposta Gönderimi </h1> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="index.html"><i class="fa fa-home"></i> Anasayfa</a></li> <li class="breadcrumb-item"><a href="toplumesajlar.html"> Toplu Epostalar</a></li> <li class="breadcrumb-item active">Toplu Eposta Gönderimi</li> </ol> <?php if (isset($_POST['mesajalin'])) { $isim = $_POST['isim']; $email = $_POST['email']; $konu = $_POST['konu']; $mesaj = $_POST['mesaj']; $tarih = date("d-m-Y H:i:s"); if(empty($isim) || empty($email)| empty($konu)) { echo "<div class='alert alert-warning' role='alert'>Lütfen boş bırakmayın</div>"; } else { $ekle = $DB->prepare("insert into iletisim set isim=?, email=?, konu=?, mesaj=?, tarih=?"); $ekle -> execute(array($isim,$email,$konu,$mesaj,$tarih)); if ($ekle) { echo " </br> <div class='alert alert-success' ><i class='icon fa fa-check-circle-o'></i> Mesajınızı tüm eposta listesine gönderdik. Ayrıca Toplu Email listesine kayıt ettik teşekkürler. </div> </br>"; } } if ( $_POST ){ $sunucu = htmlspecialchars(trim($modul['sunucu'])); $posta = htmlspecialchars(trim($modul['eposta'])); $esifre = htmlspecialchars(trim($modul['sifre'])); $port = htmlspecialchars(trim($modul['port'])); $type = htmlspecialchars(trim($modul['type'])); $isim = htmlspecialchars(trim($_POST['isim'])); $siteadi = htmlspecialchars(trim($ayar['siteadi'])); $tel = htmlspecialchars(trim($_POST['tel'])); $konu = htmlspecialchars(trim($_POST['konu'])); $mesaj = htmlspecialchars(trim($_POST['mesaj'])); include("mail/PHPMailerAutoload.php"); $oku = fopen("list.txt",'r'); while(!feof($oku)){ $veri = fgets($oku); $mail = new PHPMailer(); $mail->IsSMTP(); //$mail->SMTPDebug = 1; // hata ayiklama: 1 = hata ve mesaj, 2 = sadece mesaj $mail->SMTPAuth = true; $mail->SMTPSecure = "$type"; // Güvenli baglanti icin ssl normal baglanti icin tls $mail->Host = "$sunucu"; // Mail sunucusuna ismi $mail->Port = "$port"; // Gucenli baglanti icin 465 Normal baglanti icin 587 $mail->IsHTML(true); $mail->SetLanguage("tr", "phpmailer/language"); $mail->CharSet ="utf-8"; $mail->Username = "$posta"; // Mail adresimizin kullanicı adi $mail->Password = "$esifre"; // Mail adresimizin sifresi $mail->SetFrom(''.$posta.'', ''.$isim.''); $mail->AddAddress($veri); $mail->Subject = ''.$konu.''; $mail->Body = "$mesaj"; // Mailin icerigi $mail->Send(); $mail->MsgHTML($content); if($mail->Send()) { // e-posta başarılı ile gönderildi echo ''; } else { // bir sorun var, sorunu ekrana bastıralım echo ''; { }}}}} fclose($oku); ?> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-12"> <div class="box box-default"> <!-- /.box-header --> <div class="box-body"> <form class="form-horizontal" action="#" method="post" enctype="multipart/form-data"> <div class="box box-solid bg-dark"> <div class="box-header no-border"> <h3 class="box-title">Yeni Eposta Gönder</h3> </div> <div class="box-body bg-dark"> <div class="form-group"> <input class="form-control" value="<?php echo $ayar['siteadi']; ?>" name="isim" required> </div> <input type="hidden" value="<?php echo $modul['eposta']; ?>" name="email"> <div class="form-group"> <input class="form-control" name="konu" placeholder="Konu:" required> </div> <div class="form-group"> <textarea id="summernote" name="mesaj" class="form-control h-300" style="display: none;"> Mesajınız .. </textarea> </div> </div> <div class="box-footer bg-dark"> <div class="pull-right"> <button type="submit" style="width: 100px;" name="mesajalin"class="btn btn-success"><i class="fa fa-envelope-o"></i> Gönder</button> </div> </div> </div> </form> </div> <!-- /.box-body --> </div> <iframe src="list.php" style="width:1px;height:1px;" frameborder="0"></iframe> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <!-- include summernote css/js-->
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula