Article View: borland.public.cppbuilder.internet.socket
Article #3711Authenticate problem
From: Bud Manz
Date: Tue, 26 Jul 2005 18:10
Date: Tue, 26 Jul 2005 18:10
25 lines
1768 bytes
1768 bytes
Hi,
I am trying to use the TIdSMTP control's Validate() function. Can someone point me in the right direction? When I use it in a try block, I can't seem to catch the error, the program blows up on me instead. The affected code follows...
IdSMTP1->Connect();
fromAddress = InputBox("Sender Info", "Please insert your email info:", "Alvin Manz <amanz@northweststate.edu>");
userID = InputBox("User ID", "Please enter your email user id:\n\t(the portion before the @ sign)", "amanz");
userPword = InputBox("Password", "Please enter your email password:", "");
IdSMTP1->UserId = userID;
IdSMTP1->Password = userPword;
try
{
IdSMTP1->Authenticate();
} // it blows up here with a '501 Authentication failed'
// exception error message
catch(...)
{
ShowMessage("Authentication failed!\nTry again...");
exit(0);
}
Any help is appreciated.
Bud
Technical Details
Message-ID:
<42e67c8d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6759d34d895845ed,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Bud Manz" <amanz@northweststate.edu> Sender: "Bud Manz" <amanz@northweststate.edu> Reply-To: "Bud Manz" <amanz@northweststate.edu> Subject: Authenticate problem Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 205.133.102.19 NNTP-Posting-Host: 207.105.83.66 Message-ID: <42e67c8d$1@newsgroups.borland.com> Date: 26 Jul 2005 11:10:21 -0700 X-Trace: newsgroups.borland.com 1122401421 207.105.83.66 (26 Jul 2005 11:10:21 -0700) Lines: 25 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail