SMTPClient not authenticated at setSender method

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SMTPClient not authenticated at setSender method

Su, Michelle (GE Healthcare)
I have a question about SMTPClient.  
 
client.login();
System.out.print(client.getReplyString());
 
client.setSender( emailFrom );
System.out.print(client.getReplyString());
 
Then the output shows
 250 <My SMTP Server name> Hello [<My Local Client IP>]
 454 5.7.3 Client was not authenticated.
 
I cannot find a Authentication command in this SMTPClient package. Does
this mean that this package cannot work with the SMTP server I am using?
If so, how?
 
Thanks,
Michelle