RE: Sending email by indy

Kubilay Kulaoğlu (Probil Adana Şube) <[email protected]> Thu, 21 Aug 2003 13:41:49 +0300
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <[email protected]>
=DDt's smtp server list oke=20
=20
mx3.hotmail.com=20
mx2.mail.yahoo.com=20
mx0.gmx.de=20
mail.mynet.com=20
vmx.superonline.com=20
mx.mail.lycos.com
=20
-----Original Message-----
From: Comboy [mailto:[email protected]]=20
Sent: Thursday, August 21, 2003 1:37 PM
To: [email protected]
Subject: Re: [Delphi] Sending email by indy
=20
Hello Kubilay,
i use your code and put smtp.mail.yahoo.com for host and my usernme=20
& pass, but this message comes: "Connection refused / Authentication=20
failed". let me tell u whatever i write:

smtp.AuthenticationType:=3Datlogin;
SMTP.Host:=3D'smtp.mail.yahoo.com';
SMTP.Username:=3D'[email protected]';
SMTP.Password:=3Dedit1.text;
SMTP.Connect;
idmesaj.Body.Text:=3D'I stuck, send please send it';
idmesaj.Subject:=3D'I C U wanna send a message';
idmesaj.From.Text:=3D'[email protected]';
idmesaj.Recipients.EMailAddresses:=3D'[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=20
>=20=20
>          smtp.AuthenticationType:=3Datlogin;// logon type is=20
important
> cause some smtp server dont give permission for anoymous login
>          SMTP.Host:=3Dsmtpini.ReadString('ayarlar','Host',smtp.host);
>          SMTP.UserId:=3D
> smtpini.ReadString('ayarlar','kullanici',smtp.userid);
>          SMTP.Password:=3D
> smtpini.ReadString('ayarlar','sifre',smtp.Password);
>          SMTP.Connect;
>           idmesaj.Body.Text:=3DRichedit1.Lines.Text;
>          idmesaj.Subject:=3Dkonu.Text;
>=20=20
> idmesaj.From.Text:=3Db.ReadString('ayarlar','posta',mesaj.From.Text);
>=20=20
> idmesaj.Recipients.EMailAddresses:=3Dtblmus.fieldbyname
('email').text;
>          smtp.Send(idmesaj);
>          smtp.Disconnect;
>=20=20






Yahoo! Groups Sponsor


ADVERTISEMENT
=20
<http://rd.yahoo.com/M=3D261419.3724993.5015550.1269402/D=3Degroupweb/S=3D1=
705
115362:HM/A=3D1724960/R=3D0/SIG=3D136t0qbab/*http:/ads.x10.com/?type=3Dhref=
&line
id=3D3724993&property=3Degroupweb&aposition=3DHM&random=3D1061462309387243>=
=20

=20
<http://us.adserver.yahoo.com/l?M=3D261419.3724993.5015550.1269402/D=3Degro=
u
pmail/S=3D:HM/A=3D1724960/rand=3D135405118>=20

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

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


[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. h=
ttp://www.c1tracking.com/l.asp?cid=3D5511
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]
---------------------------------------------------------------=20

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