Just a note - even going as far as faking part of a email conversation
by connecting and checking a RCPT TO: isn't good enough. You might see
that suggested if you search for validation routines. You have do as
Matt says and actually send the email and ask for a response ala the
verification that is done when you sign up for mailing lists or message
boards. The reason being that some servers are delayed bouncers. They
accept all mail for domains they are configured for and decide later if
it needs to bounce or not. Others will check the recipient right after
the RCPT TO: and bounce immediately, but you have no way to know which
you are dealing with.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Haas, Matt (CL Tech
Sv)
Sent: Friday, January 11, 2008 9:28 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: email/SMTP validation
Tim,
The only way to know for sure is to send an email and ask for a
response. If you search through the archives (you may want to try
WEB400's as well), you'll find a link to some code that checks the
format and domain.
Matt
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of tim
Sent: Friday, January 11, 2008 10:24 AM
To: 'RPG programming on the AS400 / iSeries'
Subject: email/SMTP validation
I am interested in validating an email address. No just the syntax but
if
it's a valid email address. I've heard that that's called "smtp
validation".
Has anyone done this who can give some suggestions?
Thanks
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.