🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: NMSMTP control in CBuilder5

#3859
From: Remy Lebeau (TeamB)
Date: Wed, 08 Jun 2005 22:08
28 lines
2101 bytes
"Ricky" <ricky_austin@bellsouth.net> wrote in message
news:42a75feb$1@newsgroups.borland.com...

>   NMSMTP1->Host   = "????.?????????.???";   // was Edit1->Text;

You cannot pass a full email address to Verify(), it only accepts a
username, so you have to connect directly to the SMTP server that the email
address belongs to.  If the email address does not belong to the same domain
as your own SMTP server, then you will have to strip off the domain portion
of the email address, then perform an DNS lookup to get the MX record for
the domain, and then finally use the returned address as the Host.  So, for
example, if you want to verify 'joe@smoe.com', you have to do an MX lookup
for the 'smoe.com' domain, the connect to the returned address, and then
finally call Verify('joe').

Do note, however, that many servers do not actually implement the VRFY
command (which the command that Verify() sends).  In this case, you will not
be able to verify the address at all before sending it.  You will just have
to proceed with sending the message and catch any rejection errors that may
occur.

>   NMSMTP1->UserID = "??????????????";       // Edit4->Text;

UserID is not used with Verify()


Gambit
Technical Details
Message-ID: <42a76c5d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <42a75feb$1@newsgroups.borland.com>
Subject: Re: NMSMTP control in CBuilder5
Date: Wed, 8 Jun 2005 15:08:34 -0700
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <42a76c5d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1118268509 68.69.17.41 (8 Jun 2005 15:08:29 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail