com.hs.mail.mailet
Interface MailetContext

All Known Implementing Classes:
DefaultMailetContext

public interface MailetContext


Method Summary
 MailboxManager getMailboxManager()
           
 UserManager getUserManager()
           
 void sendMail(String sender, String[] recipients, SmtpMessage msg)
          Send an outgoing message to the top of this mailet container's root queue.
 void storeMail(long soleRecipientID, String destination, SmtpMessage msg)
          Stores the message in the target folder.
 

Method Detail

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 message
recipients - an Array of mail addresses of recipients
msg - 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 stored
msg - the SmtpMessage to store in a local mailbox
Throws:
IOException


Copyright © 2011. All Rights Reserved.