Hi Louis Tao,

For pattern check I can use regular expression. But what I meant is SMTP
check. To simulate this, you can go to http://www.network-tools.com, choose
"Email Verification" and have an email address as input.

You will have a result comprising of SMTP commands to check the validity of
the email. Result example are like below. Question is, with Java Mail API
can we have the same process without sending the message itself, but check
the validity of the email address first ?

Thanks,

Feris

*Validation results*

canonical address: <java.phiintegrat...@gmail.com>

*MX records*
preferenceexchangeIP address (if included)*5**gmail-smtp-in.l.google.com**
[0.0.0.0]**10**alt1.gmail-smtp-in.l.google.com**[0.0.0.0]**20**
alt2.gmail-smtp-in.l.google.com**[0.0.0.0]**30**
alt3.gmail-smtp-in.l.google.com**[0.0.0.0]**40**
alt4.gmail-smtp-in.l.google.com**[0.0.0.0]**SMTP session*

[Resolving gmail-smtp-in.l.google.com...]
[Contacting gmail-smtp-in.l.google.com [74.125.157.27]...]
[Connected]
220 mx.google.com ESMTP f29si23779669anh.116
EHLO Network-Tools.com
250-mx.google.com at your service, [67.222.132.194]
250-SIZE 35651584
250-8BITMIME
250 ENHANCEDSTATUSCODES
VRFY java.phiintegration
252 2.1.5 Send some mail, I'll try my best f29si23779669anh.116
RSET
250 2.1.5 Flushed f29si23779669anh.116
EXPN java.phiintegration
502 5.5.1 Unimplemented command. f29si23779669anh.116
RSET
250 2.1.5 Flushed f29si23779669anh.116
MAIL FROM:<ad...@network-tools.com>
250 2.1.0 OK f29si23779669anh.116
RCPT TO:<java.phiintegrat...@gmail.com>
250 2.1.5 OK f29si23779669anh.116
RSET
250 2.1.5 Flushed f29si23779669anh.116
QUIT

-- 
To post to this group, send email to javaprogrammingwithpassion@googlegroups.com
To unsubscribe from this group, send email to 
javaprogrammingwithpassion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en

Reply via email to