What's the difference between mail.smtp.user
and username
? Are either where I specify the destination address (to
field)? If not, what property does the destination address correspond to?
Asked
Active
Viewed 309 times
0

IAmYourFaja
- 55,468
- 181
- 466
- 756
2 Answers
0
JavaMail uses "mail.smtp.user" as the default user name to login to the SMTP mail server.
JavaMail does not use properties named "username" or "password" at all.
The destination address is set using (e.g.) msg.setRecipients(Message.RecipientType.TO, "joe@example.com").

Bill Shannon
- 29,579
- 6
- 38
- 40