Interface MessageBuilder

  • All Known Implementing Classes:
    SimpleMessageBuilder

    @ProviderType
    public interface MessageBuilder
    • Method Detail

      • headers

        @NotNull
        @NotNull MessageBuilder headers​(@NotNull
                                        @NotNull javax.mail.internet.InternetHeaders headers)
      • from

        @NotNull
        @NotNull MessageBuilder from​(@NotNull
                                     @NotNull javax.mail.internet.InternetAddress from)
      • from

        @NotNull
        @NotNull MessageBuilder from​(@NotNull
                                     @NotNull String address)
                              throws javax.mail.internet.AddressException
        Throws:
        javax.mail.internet.AddressException
      • from

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

        @NotNull
        @NotNull MessageBuilder to​(@NotNull
                                   @NotNull javax.mail.internet.InternetAddress to)
      • to

        @NotNull
        @NotNull MessageBuilder to​(@NotNull
                                   @NotNull String address)
                            throws javax.mail.internet.AddressException
        Throws:
        javax.mail.internet.AddressException
      • to

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

        @NotNull
        @NotNull MessageBuilder cc​(@NotNull
                                   @NotNull javax.mail.internet.InternetAddress cc)
      • cc

        @NotNull
        @NotNull MessageBuilder cc​(@NotNull
                                   @NotNull String address)
                            throws javax.mail.internet.AddressException
        Throws:
        javax.mail.internet.AddressException
      • cc

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

        @NotNull
        @NotNull MessageBuilder bcc​(@NotNull
                                    @NotNull javax.mail.internet.InternetAddress bcc)
      • bcc

        @NotNull
        @NotNull MessageBuilder bcc​(@NotNull
                                    @NotNull String address)
                             throws javax.mail.internet.AddressException
        Throws:
        javax.mail.internet.AddressException
      • bcc

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

        @NotNull
        @NotNull MessageBuilder replyTo​(@NotNull
                                        @NotNull javax.mail.internet.InternetAddress replyTo)
      • replyTo

        @NotNull
        @NotNull MessageBuilder replyTo​(@NotNull
                                        @NotNull String address)
                                 throws javax.mail.internet.AddressException
        Throws:
        javax.mail.internet.AddressException
      • replyTo

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

        @NotNull
        @NotNull MessageBuilder attachment​(@NotNull
                                           @org.jetbrains.annotations.NotNull byte[] content,
                                           @NotNull
                                           @NotNull String type,
                                           @NotNull
                                           @NotNull String filename)
      • attachment

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

        @NotNull
        @NotNull MessageBuilder inline​(@NotNull
                                       @org.jetbrains.annotations.NotNull byte[] content,
                                       @NotNull
                                       @NotNull String type,
                                       @NotNull
                                       @NotNull String cid)
      • inline

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

        @NotNull
        @NotNull javax.mail.internet.MimeMessage build()
                                                throws javax.mail.MessagingException
        Throws:
        javax.mail.MessagingException