|
Hi Tim,
On 11/9/2010 2:24 PM, tim.dclinc@xxxxxxxxx wrote:
Can you point me to where I might find an "email software solution. I see aThat wasn't my point. I didn't evaluate which products were on the
lot of php stuff on the net for email validation, but im not sure they cover
the issue you brought up (with exception to #2).
market -- my point was that when you want to do SMTP, you shouldn't use
Telnet software. You should use SMTP software.
Personally, I tend to write my own.
I have your LIBHTTP library installed, but not sure if I can use it for thisNo. That's HTTP software. You need SMTP software. I'm not sure why
purpose. I don't see any example (at least that I can figure out) that might
come close to doing what I am looking for.
this is so difficult to understand... to do SMTP tasks, you need SMTP
software. It seems simple to me, I don't see why it's hard for you.
I did publish some SMTP software, you'll find it here:
http://systeminetwork.com/article/send-e-mail-messages-smtp
The article's focus is for sending e-mail, so you'll probably look at it
and say "gee, that's not what I asked for"... but honestly, what you're
asking to do is something I consider inadvisable -- and I wouldn't
publish an article on that subject!
But the SMTP tools at the link above are capable of what you describe...
you'd just have to do something like:
hsmtp = SMTP_new('whatever');
if ( SMTP_connect(hsmtp) = FAIL );
// handle error
endif;
if ( SMTP_from(hsmtp: 'your-email-address-here') = FAIL );
// handle error
endif;
if ( SMTP_recip(hsmtp: 'address-to-check') = FAIL );
// server won't handle the address you provided
// so something's up.
endif;
// add additional SMTP_recip() calls to check additional
// addresses.
SMTP_free(hsmtp);
But I really, really discourage you from doing this -- as I've tried to
from the start of this discussion. This is not really a valid technique
for checking an e-mail address. As David says, it could even get your
address banned as a 'spammer.'
I also suggested that you could write your own software instead of
finding a package. You didn't seem to even notice that I mentioned it.
But if you'd like to learn that, you might be interested in the
handout for the talk I give on TCP/IP programming:
http://www.scottklement.com/presentations/#RPGSOCK
At the end of the handout are links to articles and other things that
will help you learn how to do TCP/IP programming in RPG if you're so
inclined.
Furthermore, I've also written articles about validating an e-mail
address (using somewhat more valid techniques).
Using a regular expression:
http://systeminetwork.com/article.cfm?id=52826
Using DNS Lookups:
http://systeminetwork.com/article.cfm?id=17633
However, neither of these is perfect. As I said before, there is no
really great way of validating an e-mail address. There's no method
that will give you perfect results. People hide their e-mail addresses
to avoid spam, so you'll never be able to truly validate an e-mail
address, unless you send a message and get back a response.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.