Class Attachment

java.lang.Object
africa.sendbyte.emails.Attachment

public final class Attachment extends Object
A file attachment on an outgoing email.

content must be Base64-encoded. Use of(String, String, byte[]) to build one directly from raw bytes.

  • Constructor Details

  • Method Details

    • of

      public static Attachment of(String filename, String contentType, byte[] bytes)
      Build an attachment from raw bytes, Base64-encoding them for you.
    • getFilename

      public String getFilename()
    • getContent

      public String getContent()
      Base64-encoded file content.
    • getContentType

      public String getContentType()