edu.internet2.middleware.grouper.util
Class GrouperEmail

java.lang.Object
  extended by edu.internet2.middleware.grouper.util.GrouperEmail

public class GrouperEmail
extends Object

use this chaining utility to send email


Constructor Summary
GrouperEmail()
           
 
Method Summary
static void main(String[] args)
          try an email
 void send()
          send the email
 GrouperEmail setBody(String theBody)
          set the body
 GrouperEmail setFrom(String theFrom)
          set the from address
 GrouperEmail setSubject(String theSubject)
          set subject
 GrouperEmail setTo(String theToAddress)
          set the to address
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrouperEmail

public GrouperEmail()
Method Detail

setTo

public GrouperEmail setTo(String theToAddress)
set the to address

Parameters:
theToAddress -
Returns:
this for chaining

setSubject

public GrouperEmail setSubject(String theSubject)
set subject

Parameters:
theSubject -
Returns:
this for chaining

setBody

public GrouperEmail setBody(String theBody)
set the body

Parameters:
theBody -
Returns:
this for chaining

setFrom

public GrouperEmail setFrom(String theFrom)
set the from address

Parameters:
theFrom -
Returns:
the from address

main

public static void main(String[] args)
try an email

Parameters:
args -

send

public void send()
send the email