Class SimpleMessageBuilder

    • Method Detail

      • headers

        @NotNull
        public @NotNull MessageBuilder headers​(@NotNull
                                               @NotNull javax.mail.internet.InternetHeaders headers)
        Specified by:
        headers in interface MessageBuilder
      • from

        @NotNull
        public @NotNull MessageBuilder from​(@NotNull
                                            @NotNull javax.mail.internet.InternetAddress from)
        Specified by:
        from in interface MessageBuilder
      • from

        @NotNull
        public @NotNull MessageBuilder from​(@NotNull
                                            @NotNull String address)
                                     throws javax.mail.internet.AddressException
        Specified by:
        from in interface MessageBuilder
        Throws:
        javax.mail.internet.AddressException
      • from

        @NotNull
        public @NotNull MessageBuilder from​(@NotNull
                                            @NotNull String address,
                                            @NotNull
                                            @NotNull String name)
                                     throws javax.mail.internet.AddressException
        Specified by:
        from in interface MessageBuilder
        Throws:
        javax.mail.internet.AddressException
      • to

        @NotNull
        public @NotNull MessageBuilder to​(@NotNull
                                          @NotNull javax.mail.internet.InternetAddress to)
        Specified by:
        to in interface MessageBuilder
      • to

        @NotNull
        public @NotNull MessageBuilder to​(@NotNull
                                          @NotNull String address)
                                   throws javax.mail.internet.AddressException
        Specified by:
        to in interface MessageBuilder
        Throws:
        javax.mail.internet.AddressException
      • to

        @NotNull
        public @NotNull MessageBuilder to​(@NotNull
                                          @NotNull String address,
                                          @NotNull
                                          @NotNull String name)
                                   throws javax.mail.internet.AddressException
        Specified by:
        to in interface MessageBuilder
        Throws:
        javax.mail.internet.AddressException
      • cc

        @NotNull
        public @NotNull MessageBuilder cc​(@NotNull
                                          @NotNull javax.mail.internet.InternetAddress cc)
        Specified by:
        cc in interface MessageBuilder
      • cc

        @NotNull
        public @NotNull MessageBuilder cc​(@NotNull
                                          @NotNull String address)
                                   throws javax.mail.internet.AddressException
        Specified by:
        cc in interface MessageBuilder
        Throws:
        javax.mail.internet.AddressException
      • cc

        @NotNull
        public @NotNull MessageBuilder cc​(@NotNull
                                          @NotNull String address,
                                          @NotNull
                                          @NotNull String name)
                                   throws javax.mail.internet.AddressException
        Specified by:
        cc in interface MessageBuilder
        Throws:
        javax.mail.internet.AddressException
      • bcc

        @NotNull
        public @NotNull MessageBuilder bcc​(@NotNull
                                           @NotNull javax.mail.internet.InternetAddress bcc)
        Specified by:
        bcc in interface MessageBuilder
      • bcc

        @NotNull
        public @NotNull MessageBuilder bcc​(@NotNull
                                           @NotNull String address)
                                    throws javax.mail.internet.AddressException
        Specified by:
        bcc in interface MessageBuilder
        Throws:
        javax.mail.internet.AddressException
      • bcc

        @NotNull
        public @NotNull MessageBuilder bcc​(@NotNull
                                           @NotNull String address,
                                           String name)
                                    throws javax.mail.internet.AddressException
        Specified by:
        bcc in interface MessageBuilder
        Throws:
        javax.mail.internet.AddressException
      • replyTo

        @NotNull
        public @NotNull MessageBuilder replyTo​(@NotNull
                                               @NotNull javax.mail.internet.InternetAddress replyTo)
        Specified by:
        replyTo in interface MessageBuilder
      • replyTo

        @NotNull
        public @NotNull MessageBuilder replyTo​(@NotNull
                                               @NotNull String address)
                                        throws javax.mail.internet.AddressException
        Specified by:
        replyTo in interface MessageBuilder
        Throws:
        javax.mail.internet.AddressException
      • replyTo

        @NotNull
        public @NotNull MessageBuilder replyTo​(@NotNull
                                               @NotNull String address,
                                               @NotNull
                                               @NotNull String name)
                                        throws javax.mail.internet.AddressException
        Specified by:
        replyTo in interface MessageBuilder
        Throws:
        javax.mail.internet.AddressException
      • attachment

        @NotNull
        public @NotNull MessageBuilder attachment​(@NotNull
                                                  @org.jetbrains.annotations.NotNull byte[] content,
                                                  @NotNull
                                                  @NotNull String type,
                                                  @NotNull
                                                  @NotNull String filename)
        Specified by:
        attachment in interface MessageBuilder
      • attachment

        @NotNull
        public @NotNull MessageBuilder attachment​(@NotNull
                                                  @org.jetbrains.annotations.NotNull byte[] content,
                                                  @NotNull
                                                  @NotNull String type,
                                                  @NotNull
                                                  @NotNull String filename,
                                                  @Nullable
                                                  @Nullable javax.mail.Header[] headers)
        Specified by:
        attachment in interface MessageBuilder
      • inline

        @NotNull
        public @NotNull MessageBuilder inline​(@NotNull
                                              @org.jetbrains.annotations.NotNull byte[] content,
                                              @NotNull
                                              @NotNull String type,
                                              @NotNull
                                              @NotNull String cid)
        Specified by:
        inline in interface MessageBuilder
      • inline

        @NotNull
        public @NotNull MessageBuilder inline​(@NotNull
                                              @org.jetbrains.annotations.NotNull byte[] content,
                                              @NotNull
                                              @NotNull String type,
                                              @NotNull
                                              @NotNull String cid,
                                              @Nullable
                                              @Nullable javax.mail.Header[] headers)
        Specified by:
        inline in interface MessageBuilder
      • build

        @NotNull
        public @NotNull javax.mail.internet.MimeMessage build()
                                                       throws javax.mail.MessagingException
        Specified by:
        build in interface MessageBuilder
        Throws:
        javax.mail.MessagingException