To Save email in your Sent Items folder using JavaMail, you need to add additional code after your email is sent. If you are connecting to GMail’s SMTP server, there is no need to since it automatically saves it to the Sent Mail folder. If you are connecting to some IMAP server, like an Exchange server, then you need to add the following code after your code that sends the email using SMTP.

Related Posts Plugin for WordPress, Blogger...