Package com.mchange.net
Class SmtpUtils
- java.lang.Object
-
- com.mchange.net.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)
-
-
-
Field Detail
-
DEFAULT_SMTP_PORT
public static final int DEFAULT_SMTP_PORT
- See Also:
- Constant Field Values
-
-
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)
-
-