| java.lang.Object sunlabs.brazil.handler.SMTPHandler
SMTPHandler | public class SMTPHandler implements Handler(Code) | | Handler for Sending an email message via SMTP
The following server properties are used:
- prefix
- url prefix
- host
- The mail host (e.g. listening on the SMTP port).
Dedaults to "localhost".
author: Stephen Uhler version: 1.4, 99/11/30 |
Method Summary | |
public boolean | init(Server server, String prefix) | public boolean | respond(Request request) Send an email message based on the query data
Parameters:
- to
- To address
- from
- From address
- message
- Message
- subject
- Subject
Either the message or subject may be null, but not both. | public static void | smtp(String fromHost, String smtpHost, String from, String to, String body, Hashtable headers) Send an email message via smtp - simple version. |
respond | public boolean respond(Request request) throws IOException(Code) | | Send an email message based on the query data
Parameters:
- to
- To address
- from
- From address
- message
- Message
- subject
- Subject
Either the message or subject may be null, but not both.
|
smtp | public static void smtp(String fromHost, String smtpHost, String from, String to, String body, Hashtable headers) throws IOException(Code) | | Send an email message via smtp - simple version.
Parameters: fromHost - the hostname of the sender (may be null) Parameters: smtpHost - the SMTP host (whose smtp daemon to contact) Parameters: from - who the email is from Parameters: to - a space delimited list of recepients Parameters: body - The message body Parameters: headers - message headers (may be null) |
|
|