Class OutlookMessageRecipient


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

      • OutlookMessageRecipient

        public OutlookMessageRecipient​(OutlookMessageRecipient.Type type,
                                       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,
                                       String email,
                                       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 String getName()
        Defines the name of the recipient. This value may be null.
      • setName

        public void setName​(String name)
      • getEmail

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

        public void setEmail​(String email)
      • getAddress

        public javax.mail.Address getAddress()
                                      throws javax.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:
        javax.mail.internet.AddressException - If the email is not valid.