$adsoyad = "testtest";
$epostas = "info@xxx.com;phpcini@hotmail.com;tigasann@xx.com;xx-yildiz@hotmail.com";
$mesaj = "test";
$gsm = "test";
$sinif = "test";
$durum = "test";
$tarih = date("d-m-Y");
$eposta="info@xx.com";
include 'class.phpmailer.php';
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth = true;
$mail->Host = 'mail.xx.com';
$mail->Port = 587;
$mail->SMTPSecure = 'tls';
$mail->Username = 'info@xx.com';
$mail->Password = 'xxxxxxxxx';
$mail->SetFrom($mail->Username, 'ONLİNE BAŞVURU');
$mail->AddAddress($eposta, $adsoyad);
$mail->AddAddress($epostas, 'xxx');
$mail->CharSet = 'UTF-8';
$mail->Subject = 'E-POSTA KONUSU';
$content = '<div style="background: #eee; padding: 10px; font-size: 14px">
<br>TC '.$mesaj.'<br>
AD SOYAD '.$adsoyad.'<br> Durum '.$durum.'<br> Sınıf '.$sinif.'<br> GSM '.$gsm.'<br>
EPOSTA '.$epostas.'</div>';
$mail->MsgHTML($content);
if($mail->Send()) {
// e-posta başarılı ile gönderildi
echo '<div class="success">E-posta başarıyla gönderildi, lütfen kontrol edin.</div>';
} else {
// bir sorun var, sorunu ekrana bastıralım
echo '<div class="error">'.$mail->ErrorInfo.'</div>';
} SMTP Toplu Mail Gönderme Sorunu ?
3
●1.809
- 06-10-2015, 22:07:10Üyeliği durdurulduAşağıdaki gibi kodlamam var tek bir mail yazınca gidiyor ama toplu yazınca gitmiyor neden olabilir acaba şimdiden teşekkür ederim
- 06-10-2015, 22:34:44Üyeliği durduruldufunction yapıp for döngüsü ile göndermeyi dene hocam