RE: Sending email by indy

Kubilay Kulaoğlu (Probil Adana Şube) <[email protected]> Thu, 21 Aug 2003 09:05:01 +0300
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <[email protected]>
Dont use quick send or check  security like this kod 
 
         smtp.AuthenticationType:=atlogin;// logon type is important
cause some smtp server dont give permission for anoymous login
         SMTP.Host:=smtpini.ReadString('ayarlar','Host',smtp.host);
         SMTP.UserId:=
smtpini.ReadString('ayarlar','kullanici',smtp.userid);
         SMTP.Password:=
smtpini.ReadString('ayarlar','sifre',smtp.Password);
         SMTP.Connect;
          idmesaj.Body.Text:=Richedit1.Lines.Text;
         idmesaj.Subject:=konu.Text;
 
idmesaj.From.Text:=b.ReadString('ayarlar','posta',mesaj.From.Text);
 
idmesaj.Recipients.EMailAddresses:=tblmus.fieldbyname('email').text;
         smtp.Send(idmesaj);
         smtp.Disconnect;
 
 
-----Original Message-----
From: Comboy [mailto:[email protected]] 
Sent: Wednesday, August 20, 2003 10:08 PM
To: [email protected]
Subject: [Delphi] Sending email by indy
 
Hi,
I used indy components to send emails thro delphi, using this line:
idsmtp1.quicksend
('mail.host.com','Hi','somebody@somewhere','[email protected]','You 
think it''s real?');
but some errors occur such as connection closed gracefully or host 
not found. please let me know how to do it ;)
Umm, I have indy 9 not from D7, I heared that the one which comez 
with delphi has got bugz so i downloaded a fresh one.

Many thanks,

Comboy.





Yahoo! Groups Sponsor


ADVERTISEMENT
 
<http://rd.yahoo.com/M=244522.3707890.4968055.1261774/D=egroupweb/S=1705
115362:HM/A=1595056/R=0/SIG=124p07ne0/*http:/ashnin.com/clk/muryutaitake
nattogyo?YH=3707890&yhad=1595056> Click Here!

 
<http://us.adserver.yahoo.com/l?M=244522.3707890.4968055.1261774/D=egrou
pmail/S=:HM/A=1595056/rand=758181153> 

Delphi VCL Top Sites!
http://www.sandbrooksoftware.com/TS/TS2/Components.shtml
<http://www.sandbrooksoftware.com/TS/TS2/Components.shtml> 
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/>  Terms of Service. 


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/i7folB/TM
---------------------------------------------------------------------~->

Delphi VCL Top Sites!
http://www.sandbrooksoftware.com/TS/TS2/Components.shtml
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/