Article View: borland.public.cppbuilder.internet.socket
Article #5004Use TIdSMTP has "need RCPT command" error message.
From: Yunin Tang
Date: Wed, 10 Nov 2004 14:07
Date: Wed, 10 Nov 2004 14:07
19 lines
1225 bytes
1225 bytes
void __fastcall TForm1::Button1Click(TObject *Sender)
{
bool isAuth = false;
IdSMTP1->AuthenticationType = atNone;
IdSMTP1->Connect(1000);
if(IdSMTP1->AuthSchemesSupported->IndexOf("LOGIN")>-1)
{
IdSMTP1->AuthenticationType = atLogin;
isAuth = IdSMTP1->Authenticate();
}
IdSMTP1->Send(IdMessage1); // has error
IdSMTP1->Disconnect();
}
Error Message is "need RCPT command",who can help me ?
Thanks.
Technical Details
Message-ID:
<41922ec7$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,8633bdc6b4f268b3,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Yunin Tang" <yunin@etang.com> Sender: "Yunin Tang" <yunin@etang.com> Reply-To: "Yunin Tang" <yunin@etang.com> Subject: Use TIdSMTP has "need RCPT command" error message. Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 211.148.200.221 NNTP-Posting-Host: 207.105.83.66 Message-ID: <41922ec7$1@newsgroups.borland.com> Date: 10 Nov 2004 07:07:51 -0700 X-Trace: newsgroups.borland.com 1100099271 207.105.83.66 (10 Nov 2004 07:07:51 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail