I've created a jakarta.mail.internet.InternetAddress
InternetAddress system = new InternetAddress("[email protected]");
but there is no set to set it as RecipientType BCC
I've created a jakarta.mail.internet.InternetAddress
InternetAddress system = new InternetAddress("[email protected]");
but there is no set to set it as RecipientType BCC
Copyright © 2021 Jogjafile Inc.
InternetAddress is an object used to define address and has no property of type. However you can set the type when added this address to your message:
InternetAddress system = new InternetAddress("[email protected]"); message.setRecipients(Message.RecipientType.TO, system);