com.hs.mail.mailet
Interface MailetContext
- All Known Implementing Classes:
- DefaultMailetContext
public interface MailetContext
getMailboxManager
MailboxManager getMailboxManager()
- Returns:
getUserManager
UserManager getUserManager()
- Returns:
sendMail
void sendMail(String sender,
String[] recipients,
SmtpMessage msg)
throws IOException
- Send an outgoing message to the top of this mailet container's root queue.
This is the equivalent of opening an SMTP session to localhost.
- Parameters:
sender - the sender of the messagerecipients - an Array of mail addresses of recipientsmsg - the SmtpMessage of the headers and body content of the
outgoing message
- Throws:
IOException
storeMail
void storeMail(long soleRecipientID,
String destination,
SmtpMessage msg)
throws IOException
- Stores the message in the target folder.
- Parameters:
destination - the destination folder where this message will be storedmsg - the SmtpMessage to store in a local mailbox
- Throws:
IOException
Copyright © 2011. All Rights Reserved.