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 MailServiceImplConstructor and Description |
---|
MailEncoder(MailMessage message)
create a MailEncoder for the message
|
public MailEncoder(MailMessage message)
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 laterpublic String encode()
Copyright © 2015. All Rights Reserved.