🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3860

Re: NMSMTP control in CBuilder5

#3860
From: Ricky
Date: Thu, 09 Jun 2005 00:47
42 lines
2296 bytes
It sounds like the best thing to do is just trap any errors and continue.
Thanks for your time and info.
Rick


"Ricky" <ricky_austin@bellsouth.net> wrote in message 
news:42a75feb$1@newsgroups.borland.com...
> Hello,
>
>    I am using CBuilder5 and trying to get the sample program "smtpdemo" to 
> work. I can get the control to send and receive mail as long as the email 
> address is a valid address. The problem is that I want to be able to 
> validate the email address before I email but the Verify() doesn't seem to 
> work. Here is a snippet of the sample program that always returns false.
>
>
> //---------------------------------------------------------------------------
> void __fastcall TFormMain::Button3Click(TObject *Sender)
> {
>  NMSMTP1->Host   = "????.?????????.???";   // was Edit1->Text;
>  NMSMTP1->Port   = 25;                     // was StrToInt(Edit2->Text);
>  NMSMTP1->UserID = "??????????????";       // Edit4->Text;
>
>  if (NMSMTP1->Connected)
>    NMSMTP1->Disconnect();
>
>  NMSMTP1->Connect();
>
>  if (NMSMTP1->Verify(Edit3->Text))
>    ShowMessage(Edit3->Text+" exists");
>  else
>    ShowMessage(Edit3->Text+" not verified");
>
> }
>
> Button3Click takes the value from Edit3->Text with is an email address to 
> check !
>
>
> Thanks in advance for any help,
> Rick
> 
Technical Details
Message-ID: <42a791aa$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-mail
References: <42a75feb$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,30fbc3c0ae98a3d3
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ricky" <ricky_austin@bellsouth.net>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <42a75feb$1@newsgroups.borland.com>
Subject: Re: NMSMTP control in CBuilder5
Date: Wed, 8 Jun 2005 20:47:38 -0400
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 65.81.87.87
Message-ID: <42a791aa$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1118278058 65.81.87.87 (8 Jun 2005 17:47:38 -0700)
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