Class Mailer.Message

java.lang.Object
javax.mail.Message
javax.mail.internet.MimeMessage
org.nuxeo.ecm.automation.core.mail.Mailer.Message
All Implemented Interfaces:
javax.mail.internet.MimePart, javax.mail.Part
Enclosing class:
Mailer

public static class Mailer.Message extends javax.mail.internet.MimeMessage
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     

    Nested classes/interfaces inherited from class javax.mail.internet.MimeMessage

    javax.mail.internet.MimeMessage.RecipientType
  • Field Summary

    Fields inherited from class javax.mail.internet.MimeMessage

    content, contentStream, dh, flags, headers, modified, saved

    Fields inherited from class javax.mail.Message

    expunged, folder, msgnum, session

    Fields inherited from interface javax.mail.Part

    ATTACHMENT, INLINE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Message(javax.mail.Session session)
     
    Message(javax.mail.Session session, InputStream in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    void
     
     
    protected List<String>
    asStringList(Object[] objects)
     
    protected MailMessage
    fromMimeMessage(javax.mail.internet.MimeMessage original)
     
    void
     
     

    Methods inherited from class javax.mail.internet.MimeMessage

    addFrom, addHeader, addHeaderLine, addRecipients, addRecipients, createInternetHeaders, createMimeMessage, getAllHeaderLines, getAllHeaders, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getContentStream, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getHeader, getHeader, getInputStream, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getMessageID, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSize, getSubject, isMimeType, isSet, parse, removeHeader, reply, saveChanges, setContent, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFlags, setFrom, setFrom, setHeader, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setSubject, setText, setText, setText, updateHeaders, updateMessageID, writeTo, writeTo

    Methods inherited from class javax.mail.Message

    addRecipient, getFolder, getMessageNumber, isExpunged, match, setExpunged, setFlag, setMessageNumber, setRecipient

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Message

      public Message(javax.mail.Session session)
    • Message

      public Message(javax.mail.Session session, InputStream in) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
  • Method Details

    • addTo

      public Mailer.Message addTo(String to) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • addCc

      public Mailer.Message addCc(String cc) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • addBcc

      public Mailer.Message addBcc(String bcc) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • addFrom

      public Mailer.Message addFrom(String from) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • addInfoInMessageHeader

      public void addInfoInMessageHeader(String address, Mailer.Message.AS as) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • setFrom

      public Mailer.Message setFrom(String from) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • send

      public void send() throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • fromMimeMessage

      protected MailMessage fromMimeMessage(javax.mail.internet.MimeMessage original)
    • asStringList

      protected List<String> asStringList(Object[] objects)