java.lang.Object
i2p.susi.webmail.WebMail.EmailSender
- All Implemented Interfaces:
Runnable
- Enclosing class:
WebMail
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<Attachment> The attachments to include.private final StringBuilderThe message body text.private final StringThe MIME boundary separating the parts.private final DraftThe draft being sent.private final StringThe SMTP host to connect to.private final StringThe SMTP login password.private final intThe SMTP port to connect to.The addresses to send to.private final StringThe sender address to announce.private final WebMail.SessionObjectThe session sending the mail.private final StringThe SMTP login user.Constructor Summary
ConstructorsConstructorDescriptionEmailSender(WebMail.SessionObject so, Draft d, String s, List<String> recip, StringBuilder bod, List<Attachment> att, String b) Prepares to send one draft through SMTP.Method Summary
All MethodsModifier and TypeMethodDescriptionvoidrun()Hands the queued draft to the SMTP relay and records the outcome.
Field Details
sessionObject
The session sending the mail.draft
The draft being sent.host
The SMTP host to connect to.user
The SMTP login user.pass
The SMTP login password.sender
The sender address to announce.boundary
The MIME boundary separating the parts.port
private final int portThe SMTP port to connect to.recipients
body
The message body text.attachments
The attachments to include.
Constructor Details
EmailSender
public EmailSender(WebMail.SessionObject so, Draft d, String s, List<String> recip, StringBuilder bod, List<Attachment> att, String b) Prepares to send one draft through SMTP.- Parameters:
so- the session sending the maild- the draft to sends- the sender addressrecip- the addresses to send tobod- the body textatt- the attachments to includeb- the MIME boundary
Method Details
run