public class SMTPClient extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
BINARY_MAX_SIZE
About 23.25 MB.
|
static long |
DEFAULT_MAX_SIZE
31.84 MB
smtp.postman.i2p as of 2017-12.
|
String |
error |
| Constructor and Description |
|---|
SMTPClient() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
sendMail(String host,
int port,
String user,
String pass,
String sender,
String[] recipients,
StringBuilder body,
List<Attachment> attachments,
String boundary) |
static void |
writeMail(Writer out,
StringBuilder body,
List<Attachment> attachments,
String boundary)
Caller must close out
|
public static final long DEFAULT_MAX_SIZE
public static final long BINARY_MAX_SIZE
public String error
public boolean sendMail(String host, int port, String user, String pass, String sender, String[] recipients, StringBuilder body, List<Attachment> attachments, String boundary)
body - headers and body, without the attachmentsattachments - may be nullboundary - non-null if attachments is non-nullpublic static void writeMail(Writer out, StringBuilder body, List<Attachment> attachments, String boundary) throws IOException
body - headers and body, without the attachmentsattachments - may be nullboundary - non-null if attachments is non-nullIOException