Merhaba arkadaşlar,
Delphi ile eskisi kadar uğraşmayınca sorularımda azalmaya başladı Şöyle bi sorum olacaktı; Indy bileşenleri ile bir mail gönderme programı yaptım. Veritabanındaki mail listesindeki zatı muhteremlere sırayla mail gönderiyorum. Yalnız şöyle bir problem oluyor. Toplu halde mail göndermeye başladığımda, 15-20 bazen 30-40 mail gönderdikten sonra program kitleniyor. Veri tabanındaki bütün kayıtlara mail göndermeyi tamamlayamadan, programda sorun oluşuyor. Döngü içinde sleep veya gecikme gibi programlar kullandım, biraz dinlensin dedim makina döngülerde ama banamısın demedi Varmıdır bir fikre sahip olan?
döngü kodu:
----------------------------------
while not adotbl.Eof do
begin
i := i + 1;
AliciAdres := adotbl.FieldByName('UyeMail').AsString;
lblMail.Caption := AliciAdres;
MailSend(AliciAdres); //aliciadresini girdiğim kişey maili gönderiyor
lblMailCount.Caption := inttostr(i);
// Delay(100);
// sleep(100);
adotbl.Next;
end;
********************************************************
MailSend alt programı
------------------------------
function TForm1.MailSend(Adres: String): Boolean;
begin
try
try
msg.From.Address := cmbbxUserName.Items[cmbbxUserName.ItemIndex];
msg.Recipients.EMailAddresses := Adres;
msg.Subject := edtSubject.Text;
msg.Body.Assign(edtBody.Lines);
finally
smtp.Send(msg);
//stsbrDurum.SimpleText := 'Mail Gönderildi';
//delay(100);
end;
except
ShowMessage('Mail Gönderilemedi');
end;
end;
*******************************************************************
Toplu mail göndermede döngüde tıkanma
Forum kuralları
Forum kurallarını okuyup, uyunuz!
Forum kurallarını okuyup, uyunuz!
tabii server maili gönderemeyince cevap maili geliyor bana;
-----------------
This is the Postfix program at host mx13.turkticaret.net.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to <postmaster>
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The Postfix program
<hebelehubele@yahoo.com>: host mx3.mail.yahoo.com[67.28.113.10] said: 451
mta131.mail.re2.yahoo.com Resources temporarily unavailable. Please try
again later. [#4.16.4:190]. (in reply to end of DATA command)
-----------------
-----------------
This is the Postfix program at host mx13.turkticaret.net.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to <postmaster>
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The Postfix program
<hebelehubele@yahoo.com>: host mx3.mail.yahoo.com[67.28.113.10] said: 451
mta131.mail.re2.yahoo.com Resources temporarily unavailable. Please try
again later. [#4.16.4:190]. (in reply to end of DATA command)
-----------------
[sallama mod]
programda hata olmadığına eminsen, mail serverda spam kontrolü için float control tarzı bir parametre olabilirmi
[/sallama mod]
programda hata olmadığına eminsen, mail serverda spam kontrolü için float control tarzı bir parametre olabilirmi
[/sallama mod]
.-.-.-.-.-.-.-. ^_^
-
- Üye
- Mesajlar: 380
- Kayıt: 31 Eki 2005 03:26
bende turkticaret.net kullanıyorum, bir keresinde 1900 kişiye birden duyuru maili göndermiştim, hemen hesabı bloke ettiler. Arayınca spam gönderdiğiniz tesbit edilmiştir, fakslayacağımız sözleşmeyi imzalayıp gönderdikten sonra açarız falan dediler. o yüzden sleep olayını biraz daha uzatsan daha iyi olacak
.
.