Class Emails


  • public class Emails
    extends java.lang.Object
    Author:
    Janesh Kodikara, Denis Torres
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Emails.Attachment  
    • Constructor Summary

      Constructors 
      Constructor Description
      Emails()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void send​(java.lang.String smtpHost, int smtpPort, java.lang.String fromEmail, java.lang.String toEmail, java.lang.String subject, java.lang.String content)  
      static void send​(java.lang.String smtpHost, int smtpPort, java.lang.String fromEmail, java.lang.String toEmail, java.lang.String ccEmail, java.lang.String subject, java.lang.String content)  
      static void send​(java.lang.String fromEmail, java.lang.String senderName, java.lang.String toEmail, java.lang.String subject, java.lang.String content)  
      static void send​(java.lang.String fromEmail, java.lang.String senderName, java.lang.String toEmail, java.lang.String ccEmail, java.lang.String subject, java.lang.String content)  
      static void send​(java.lang.String fromEmail, java.lang.String toEmail, java.lang.String subject, java.lang.String content, Emails.Attachment... attachments)  
      static void send​(java.lang.String toEmail, java.lang.String subject, java.lang.String content, Emails.Attachment... attachments)  
      static void sendInBackground​(java.lang.String toEmail, java.lang.String subject, java.lang.String content)  
      static void sendInBackground​(java.lang.String fromEmail, java.lang.String toEmail, java.lang.String subject, java.lang.String content)  
      • Methods inherited from class java.lang.Object

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

      • Emails

        public Emails()
    • Method Detail

      • send

        public static void send​(java.lang.String smtpHost,
                                int smtpPort,
                                java.lang.String fromEmail,
                                java.lang.String toEmail,
                                java.lang.String subject,
                                java.lang.String content)
                         throws javax.mail.internet.AddressException,
                                javax.mail.MessagingException
        Throws:
        javax.mail.internet.AddressException
        javax.mail.MessagingException
      • send

        public static void send​(java.lang.String smtpHost,
                                int smtpPort,
                                java.lang.String fromEmail,
                                java.lang.String toEmail,
                                java.lang.String ccEmail,
                                java.lang.String subject,
                                java.lang.String content)
                         throws javax.mail.internet.AddressException,
                                javax.mail.MessagingException
        Throws:
        javax.mail.internet.AddressException
        javax.mail.MessagingException
      • sendInBackground

        public static void sendInBackground​(java.lang.String toEmail,
                                            java.lang.String subject,
                                            java.lang.String content)
        Since:
        5.9
      • sendInBackground

        public static void sendInBackground​(java.lang.String fromEmail,
                                            java.lang.String toEmail,
                                            java.lang.String subject,
                                            java.lang.String content)
        Since:
        5.9
      • send

        public static void send​(java.lang.String toEmail,
                                java.lang.String subject,
                                java.lang.String content,
                                Emails.Attachment... attachments)
                         throws javax.mail.internet.AddressException,
                                javax.mail.MessagingException
        Throws:
        javax.mail.internet.AddressException
        javax.mail.MessagingException
      • send

        public static void send​(java.lang.String fromEmail,
                                java.lang.String toEmail,
                                java.lang.String subject,
                                java.lang.String content,
                                Emails.Attachment... attachments)
                         throws javax.mail.internet.AddressException,
                                javax.mail.MessagingException
        Throws:
        javax.mail.internet.AddressException
        javax.mail.MessagingException
      • send

        public static void send​(java.lang.String fromEmail,
                                java.lang.String senderName,
                                java.lang.String toEmail,
                                java.lang.String subject,
                                java.lang.String content)
                         throws javax.mail.internet.AddressException,
                                javax.mail.MessagingException,
                                java.io.UnsupportedEncodingException
        Throws:
        javax.mail.internet.AddressException
        javax.mail.MessagingException
        java.io.UnsupportedEncodingException
      • send

        public static void send​(java.lang.String fromEmail,
                                java.lang.String senderName,
                                java.lang.String toEmail,
                                java.lang.String ccEmail,
                                java.lang.String subject,
                                java.lang.String content)
                         throws javax.mail.internet.AddressException,
                                javax.mail.MessagingException,
                                java.io.UnsupportedEncodingException
        Throws:
        javax.mail.internet.AddressException
        javax.mail.MessagingException
        java.io.UnsupportedEncodingException