Package io.jmix.email

Class EmailAttachment

java.lang.Object
io.jmix.email.EmailAttachment
All Implemented Interfaces:
Serializable

public class EmailAttachment extends Object implements Serializable
See Also:
  • Constructor Details

    • EmailAttachment

      public EmailAttachment(byte[] data, String name)
      Create file attachment.
    • EmailAttachment

      public EmailAttachment(byte[] data, String name, String contentId)
      Create inline attachment (e.g. image embedded into html).
    • EmailAttachment

      public EmailAttachment(byte[] data, String name, @Nullable String contentId, String disposition, @Nullable String encoding)
  • Method Details

    • getData

      public byte[] getData()
    • getName

      public String getName()
    • getContentId

      public String getContentId()
    • getDisposition

      public String getDisposition()
    • getEncoding

      public String getEncoding()
    • createTextAttachment

      public static EmailAttachment createTextAttachment(String text, String encoding, String name)