Passage Server Java API
All Classes
Class WMail
Constructor
  WMail(WServer oServer)
Initializes a newly created WMail object.

Parameters:
oServer - a WServer.
Methods
void SetFrom(String EmailFrom)
Sets the email address to send a message from.

Parameters:
EmailFrom - email address.
void SetContentType(String ContentType)
Sets the content type.

Parameters:
ContentType - content type. Available types are 'text/plain' and 'text/html'.
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, and puts error description in ws_sys.log file.
Example
  api_WMail.java
© PASSAGE