public class MailEncoder extends Object
example usage is:
MailMessage = new MailMessage();
(set elements and attachments ...)
String message = new MailEncoder(mailmessage).encode();
usually you are not using this class directly, rather it will be used by sendMail()
in MailClientImpl
Constructor and Description |
---|
MailEncoder(MailMessage message,
String hostname)
create a MailEncoder for the message
|
Modifier and Type | Method and Description |
---|---|
String |
encode()
encode the MailMessage to a String
|
String |
getMessageID() |
public MailEncoder(MailMessage message, String hostname)
The class will probably get a few setters for optional features of the SMTP protocol later e.g. 8BIT or SMTPUTF (this is not yet supported)
message
- the message to encode laterhostname
- the hostname to be used in message-id or null to get hostname from OS network configCopyright © 2023 Eclipse. All rights reserved.