public class SMTPClient extends Object
Modifier and Type | Field and Description |
---|---|
static long |
BINARY_MAX_SIZE
7629902 ~= 7.27 MB
Base64 encodes 57 chars to 76 + \r\n on a line
|
static long |
DEFAULT_MAX_SIZE
10.00 MB
smtp.postman.i2p as of 2024-06-22.
|
String |
error |
Constructor and Description |
---|
SMTPClient() |
Modifier and Type | Method and Description |
---|---|
boolean |
sendMail(String host,
int port,
String user,
String pass,
String sender,
List<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, List<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