🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

NMSMTP control in CBuilder5

#3858
From: Ricky
Date: Wed, 08 Jun 2005 21:15
34 lines
1969 bytes
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: <42a75feb$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!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

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,30fbc3c0ae98a3d3,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ricky" <ricky_austin@bellsouth.net>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: NMSMTP control in CBuilder5
Date: Wed, 8 Jun 2005 17:15:24 -0400
Lines: 36
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; Original
NNTP-Posting-Host: 65.81.87.87
Message-ID: <42a75feb$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1118265323 65.81.87.87 (8 Jun 2005 14:15:23 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!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