// After connection attempt, you should check the reply code to verify
// success.
System.out.print(client.getReplyString());
int reply = client.getReplyCode();
if (!SMTPReply.isPositiveCompletion(reply)) {
client.disconnect();
AxisFault fault = new AxisFault("SMTP", "( SMTP server refused connection )", null, null);
throw fault;
}
client.login(smtpHost);