Version: 1.1.1

org.biomoby.registry.rdfagent.util
Class Mailer

java.lang.Object
  extended by 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
 
Method Summary
 boolean sendMail(String recipient, String subject, String body)
           
 boolean sendSMTPMail(String server, String login, String pass, String recipient, String subject, String body, String from)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mailer

public Mailer()
Constructor

Method Detail

sendSMTPMail

public boolean sendSMTPMail(String server,
                            String login,
                            String pass,
                            String recipient,
                            String subject,
                            String body,
                            String from)
Parameters:
server - the SMTP mail server
login - the SMTP login
pass - the SMTP password used with login
recipient - the mail recipient
subject - the subject of the message
body - the body of the message
from - 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 address
subject - the subject of the message
body - 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.


Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010