Re: Sending email by indy
"Comboy" <[email protected]> Thu, 21 Aug 2003 10:37:10 -0000
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <[email protected]> |
Hello Kubilay, i use your code and put smtp.mail.yahoo.com for host and my usernme & pass, but this message comes: "Connection refused / Authentication failed". let me tell u whatever i write: smtp.AuthenticationType:=atlogin; SMTP.Host:='smtp.mail.yahoo.com'; SMTP.Username:='[email protected]'; SMTP.Password:=edit1.text; SMTP.Connect; idmesaj.Body.Text:='I stuck, send please send it'; idmesaj.Subject:='I C U wanna send a message'; idmesaj.From.Text:='[email protected]'; idmesaj.Recipients.EMailAddresses:='[email protected]'; smtp.Send(idmesaj); smtp.Send(idmesaj); smtp.Disconnect; Umm, is it correct? Have Fun, Comboy > 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; > ------------------------ 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/