Package i2p.susi.webmail.smtp
Class SMTPClient
java.lang.Object
i2p.susi.webmail.smtp.SMTPClient
- Author:
- susi
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
7629902 ~= 7.27 MB Base64 encodes 57 chars to 76 + \r\n on a linestatic final long
10.00 MB smtp.postman.i2p as of 2024-06-22. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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
-
Field Details
-
DEFAULT_MAX_SIZE
public static final long DEFAULT_MAX_SIZE10.00 MB smtp.postman.i2p as of 2024-06-22.- Since:
- 0.9.33
- See Also:
-
BINARY_MAX_SIZE
public static final long BINARY_MAX_SIZE7629902 ~= 7.27 MB Base64 encodes 57 chars to 76 + \r\n on a line- Since:
- 0.9.33
- See Also:
-
error
-
-
Constructor Details
-
SMTPClient
public SMTPClient()
-
-
Method Details
-
sendMail
public boolean sendMail(String host, int port, String user, String pass, String sender, String[] recipients, StringBuilder body, List<Attachment> attachments, String boundary) - Parameters:
body
- headers and body, without the attachmentsattachments
- may be nullboundary
- non-null if attachments is non-null- Returns:
- success
-
writeMail
public static void writeMail(Writer out, StringBuilder body, List<Attachment> attachments, String boundary) throws IOException Caller must close out- Parameters:
body
- headers and body, without the attachmentsattachments
- may be nullboundary
- non-null if attachments is non-null- Throws:
IOException
-