org.springframework.mail.javamail

Class MimeMailMessage

  • java.lang.Object
    • org.springframework.mail.javamail.MimeMailMessage
  • All Implemented Interfaces:
    MailMessage


    public class MimeMailMessage
    extends java.lang.Object
    implements MailMessage
    Implementation of the MailMessage interface for a JavaMail MIME message, to let message population code interact with a simple message or a MIME message through a common interface.

    Uses a MimeMessageHelper underneath. Can either be created with a MimeMessageHelper instance or with a JavaMail MimeMessage instance.

    Since:
    1.1.5
    Author:
    Juergen Hoeller
    See Also:
    MimeMessageHelper, MimeMessage
    • Constructor Summary

      Constructors 
      Constructor and Description
      MimeMailMessage(MimeMessage mimeMessage)
      Create a new MimeMailMessage based on the given JavaMail MimeMessage.
      MimeMailMessage(MimeMessageHelper mimeMessageHelper)
      Create a new MimeMailMessage based on the given MimeMessageHelper.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      MimeMessage getMimeMessage()
      Return the JavaMail MimeMessage that this MimeMailMessage is based on.
      MimeMessageHelper getMimeMessageHelper()
      Return the MimeMessageHelper that this MimeMailMessage is based on.
      void setBcc(java.lang.String... bcc) 
      void setBcc(java.lang.String bcc) 
      void setCc(java.lang.String... cc) 
      void setCc(java.lang.String cc) 
      void setFrom(java.lang.String from) 
      void setReplyTo(java.lang.String replyTo) 
      void setSentDate(java.util.Date sentDate) 
      void setSubject(java.lang.String subject) 
      void setText(java.lang.String text) 
      void setTo(java.lang.String... to) 
      void setTo(java.lang.String to) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait