Class OutlookMessageRecipient


  • public class OutlookMessageRecipient
    extends java.lang.Object
    Represents a recipient.
    Author:
    Cedric Tabin
    • Constructor Detail

      • OutlookMessageRecipient

        public OutlookMessageRecipient​(OutlookMessageRecipient.Type type,
                                       java.lang.String email)
        Creates a new OutlookMessageRecipient with the given type and email and a null name.
        Parameters:
        type - The type.
        email - The email or null.
      • OutlookMessageRecipient

        public OutlookMessageRecipient​(OutlookMessageRecipient.Type type,
                                       java.lang.String email,
                                       java.lang.String name)
        Creates a new OutlookMessageRecipient with the specified parameters.
        Parameters:
        type - The type.
        email - The email or null.
        name - The name or null.
    • Method Detail

      • getName

        public java.lang.String getName()
        Defines the name of the recipient. This value may be null.
      • setName

        public void setName​(java.lang.String name)
      • getEmail

        public java.lang.String getEmail()
        Defines the email of the recipient. This value may be null.
      • setEmail

        public void setEmail​(java.lang.String email)
      • getAddress

        public jakarta.mail.Address getAddress()
                                        throws jakarta.mail.internet.AddressException
        Returns a new Address from the email of this recipient. If the email is not defined, this method returns null.
        Returns:
        A new InternetAddress.
        Throws:
        jakarta.mail.internet.AddressException - If the email is not valid.