org.biomoby.registry.rdfagent.util
Class Mailer
java.lang.Object
org.biomoby.registry.rdfagent.util.Mailer
public class Mailer
- extends Object
This class is a mailer for the RDF agent. In it are methods to perform SMTP
mailing as well as mailing via 'mail' on unix machines.
- Author:
- Eddie created Feb 1, 2006
Constructor Summary |
Mailer()
Constructor |
Mailer
public Mailer()
- Constructor
sendSMTPMail
public boolean sendSMTPMail(String server,
String login,
String pass,
String recipient,
String subject,
String body,
String from)
- Parameters:
server
- the SMTP mail serverlogin
- the SMTP loginpass
- the SMTP password used with loginrecipient
- the mail recipientsubject
- the subject of the messagebody
- the body of the messagefrom
- who the message is from
- Returns:
- true if the message was sent (doesn't imply that the message was
received), false otherwise
sendMail
public boolean sendMail(String recipient,
String subject,
String body)
- Parameters:
recipient
- the recipients email addresssubject
- the subject of the messagebody
- the message to send to the mail recipient
- Returns:
- true if the message was sent, false otherwise.
Note: there are some instances where an exception is
caught during mailing of the message and the message may have
been sent, yet sendMail reports it as failing.
Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010