Constructor | |
Not available. Object is created by method newMail() of class WServer. | |
Methods | |
void |
setContentType(String contentType) Sets the content type. Parameters: contentType - content type Available content types are "text/plain" and "text/html". |
void |
setFrom(String from) Sets the email address to send a message from. Parameters: from - email address |
int |
send(String recipients[], String sub, String msg) Sends the message. Parameters: recipients - the list of email addresses to send a message to sub - message subject msg - message content Returns: 0 if the message is sent successfully; -1 otherwise |
Example | |
api_WMail.java |