can i use java mail Api in Swings