|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface for Phoenix blocks to the James MailServer
Field Summary | |
static java.lang.String |
ALL
Reserved user name meaning all users for multi-user mailboxes |
static java.lang.String |
MDA
Reserved user name for the mail delivery agent for multi-user mailboxes |
static java.lang.String |
ROLE
|
Method Summary | |
boolean |
addUser(java.lang.String userName,
java.lang.String password)
Adds a new user to the mail system with userName. |
java.lang.String |
getId()
|
MailRepository |
getUserInbox(java.lang.String userName)
Retrieve the primary mailbox for userName. |
boolean |
isLocalServer(java.lang.String serverName)
Checks if a server is serviced by mail context |
void |
sendMail(Mail mail)
Pass a Mail to this MailServer for processing |
void |
sendMail(MailAddress sender,
java.util.Collection recipients,
java.io.InputStream msg)
Pass a MimeMessage to this MailServer for processing |
void |
sendMail(MailAddress sender,
java.util.Collection recipients,
javax.mail.internet.MimeMessage msg)
Pass a MimeMessage to this MailServer for processing |
Field Detail |
public static final java.lang.String ROLE
public static final java.lang.String MDA
public static final java.lang.String ALL
Method Detail |
public void sendMail(MailAddress sender, java.util.Collection recipients, javax.mail.internet.MimeMessage msg) throws javax.mail.MessagingException
sender
- - the sender of the messagerecipients
- - a Collection of String objects of recipientsmsg
- - the MimeMessage of the headers and body content of
the outgoing message
javax.mail.MessagingException
- - if the message fails to parsepublic void sendMail(MailAddress sender, java.util.Collection recipients, java.io.InputStream msg) throws javax.mail.MessagingException
sender
- - the sender of the messagerecipients
- - a Collection of String objects of recipientsmsg
- - an InputStream containing the headers and body content of
the outgoing message
javax.mail.MessagingException
- - if the message fails to parsepublic void sendMail(Mail mail) throws javax.mail.MessagingException
javax.mail.MessagingException
- - if the message fails to parsepublic MailRepository getUserInbox(java.lang.String userName)
public java.lang.String getId()
public boolean addUser(java.lang.String userName, java.lang.String password)
public boolean isLocalServer(java.lang.String serverName)
serverName
- - name of server.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |