public final class SmtpUtils extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SMTP_PORT |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] argv) |
static void |
sendMail(InetAddress smtpHost,
int smtpPort,
String mailFrom,
String[] rcptTo,
Properties headers,
byte[] bodyBytes) |
public static final int DEFAULT_SMTP_PORT
public static void sendMail(InetAddress smtpHost, int smtpPort, String mailFrom, String[] rcptTo, Properties headers, byte[] bodyBytes) throws IOException, SmtpException
IOException
SmtpException
public static void main(String[] argv)
Copyright © 2017 com.mchange. All rights reserved.