SMTP Authentication using JMail
How to authenticate with an SMTP server using JMail

From the JMail FAQ page at http://www.dimac.net/:

Q: My smtp server requires a user login and password, how does Jmail handle this ?

A: Yes. In version 4.3 you can use:

Message.MailServerUserName = "myUserName" Message.MailServerPassword = "myPassword"

 

It is also possible to specify it in the Send() function:

Message.Send("myUserName:mypassword@mymailserver.mydomain.com")