Class 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 class  Mailer.Message.AS  
      • 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Mailer.Message addBcc​(String bcc)  
      Mailer.Message addCc​(String cc)  
      Mailer.Message addFrom​(String from)  
      void addInfoInMessageHeader​(String address, Mailer.Message.AS as)  
      Mailer.Message addTo​(String to)  
      void send()  
      Mailer.Message setFrom​(String from)  
      • 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
    • Constructor Detail

      • 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 Detail

      • 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