Class SmtpUtils


  • public final class SmtpUtils
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DEFAULT_SMTP_PORT  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] argv)  
      static void sendMail​(java.net.InetAddress smtpHost, int smtpPort, java.lang.String mailFrom, java.lang.String[] rcptTo, java.util.Properties headers, byte[] bodyBytes)  
      • Methods inherited from class java.lang.Object

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

      • sendMail

        public static void sendMail​(java.net.InetAddress smtpHost,
                                    int smtpPort,
                                    java.lang.String mailFrom,
                                    java.lang.String[] rcptTo,
                                    java.util.Properties headers,
                                    byte[] bodyBytes)
                             throws java.io.IOException,
                                    SmtpException
        Throws:
        java.io.IOException
        SmtpException
      • main

        public static void main​(java.lang.String[] argv)