Class Email


  • public class Email
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Email​(java.lang.String subject, java.lang.String content, java.lang.String sender, java.lang.String recipient)
      Construct an OTP email with the specified subject, date, content, sender, and recipient.
      Email​(java.lang.String subject, java.lang.String content, java.lang.String sender, java.lang.String recipient, java.lang.String contentType)
      Construct an OTP email with the specified subject, date, content, sender, and recipient.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContent()
      Get the content.
      java.lang.String getContentType()
      Get the content type
      java.lang.String getRecipient()
      Get the recipient.
      java.lang.String getSender()
      Get the sender.
      java.lang.String getSubject()
      Get the subject.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Email

        public Email​(java.lang.String subject,
                     java.lang.String content,
                     java.lang.String sender,
                     java.lang.String recipient)
        Construct an OTP email with the specified subject, date, content, sender, and recipient. Defaults the content type to text/plain.
        Parameters:
        subject - The subject.
        date - The date.
        content - The content.
        sender - The sender.
        recipient - The recipient.
      • Email

        public Email​(java.lang.String subject,
                     java.lang.String content,
                     java.lang.String sender,
                     java.lang.String recipient,
                     java.lang.String contentType)
        Construct an OTP email with the specified subject, date, content, sender, and recipient.
        Parameters:
        subject - The subject.
        date - The date.
        content - The content.
        sender - The sender.
        recipient - The recipient.
        contentType - The content type
    • Method Detail

      • getSubject

        public java.lang.String getSubject()
        Get the subject.
        Returns:
        The subject.
      • getContent

        public java.lang.String getContent()
        Get the content.
        Returns:
        The content.
      • getSender

        public java.lang.String getSender()
        Get the sender.
        Returns:
        The sender.
      • getRecipient

        public java.lang.String getRecipient()
        Get the recipient.
        Returns:
        The recipient.
      • getContentType

        public java.lang.String getContentType()
        Get the content type
        Returns:
        the content type