|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface defines a Mailer service for sending email through a mail- server. The message is auumed to be in multi-part MIME format, based on the number of attachments provided before sending the email.
| Field Summary | |
static java.lang.String |
ROLEThe ROLE name used to acquire services that implement this service |
| Method Summary | |
void |
addMIMEAttachment(java.lang.String fileName)Add a MIME attachment, MIME-type will be determined automatically by the system |
void |
addMIMEAttachment(java.lang.String[] fileNames)Add multiple MIME attachments |
void |
send()Send the email to the mail-server |
void |
send(java.lang.String host, java.lang.String user, java.lang.String password)Send mail to a different host with a different user and password |
void |
setBccAddress(java.lang.String address)Set the blind-carbon-copy addresses for this email |
void |
setBccAddress(java.lang.String[] addresses)Set multiple blibd-carbon-copy addresses |
void |
setCcAddress(java.lang.String address)Set the carbon-copy address for this email |
void |
setCcAddress(java.lang.String[] addresses)Set multiple carbon-copy addresses |
void |
setFromAddress(java.lang.String address)Set the address of the sender of the email |
void |
setHeader(java.lang.String name, java.lang.String value)Set an arbitrary header |
void |
setMessage(java.lang.String message)Set the text content of the email, weill be sent as first attachment |
void |
setReplyToAddress(java.lang.String address)Set the reply-to header in the email, usually if different from the sender's email. |
void |
setReplyToAddress(java.lang.String[] addresses)Set multiple reply-to addresses |
void |
setSubject(java.lang.String subject)Set the subject of the email |
void |
setToAddress(java.lang.String address)The address to send email |
void |
setToAddress(java.lang.String[] addresses)Set the addresses to send email to |
| Field Detail |
public static final java.lang.String ROLE
| Method Detail |
public void setToAddress(java.lang.String address)
throws NestedException
address - A standard address, or a comma-separated list of addressesNestedException
public void setToAddress(java.lang.String[] addresses)
throws NestedException
addresses - An array of String addressesNestedException
public void setFromAddress(java.lang.String address)
throws NestedException
address -NestedException
public void setReplyToAddress(java.lang.String address)
throws NestedException
address -NestedException
public void setReplyToAddress(java.lang.String[] addresses)
throws NestedException
addresses -NestedException
public void setCcAddress(java.lang.String address)
throws NestedException
address -NestedException
public void setCcAddress(java.lang.String[] addresses)
throws NestedException
addresses -NestedException
public void setBccAddress(java.lang.String address)
throws NestedException
address -NestedException
public void setBccAddress(java.lang.String[] addresses)
throws NestedException
addresses -NestedException
public void setSubject(java.lang.String subject)
throws NestedException
subject -NestedException
public void setHeader(java.lang.String name,
java.lang.String value)
throws NestedException
name -value -NestedException
public void setMessage(java.lang.String message)
throws NestedException
message -NestedException
public void addMIMEAttachment(java.lang.String fileName)
throws NestedException
fileName -NestedException
public void addMIMEAttachment(java.lang.String[] fileNames)
throws NestedException
fileNames -NestedException
public void send()
throws NestedException
NestedException
public void send(java.lang.String host,
java.lang.String user,
java.lang.String password)
throws NestedException
host -user -password -NestedException
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||