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


Field Summary
static long testingEmailCount
          keep count for testing
 
Constructor Summary
GrouperEmail()
           
 
Method Summary
 String getBody()
          body of email (currently HTML is not supported, only plain text)
 String getFrom()
          email address this is from
 String getSubject()
          subject of email
 String getTo()
          who this email is going to (comma separated)
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
static List<GrouperEmail> testingEmails()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testingEmailCount

public static long testingEmailCount
keep count for testing

Constructor Detail

GrouperEmail

public GrouperEmail()
Method Detail

testingEmails

public static List<GrouperEmail> testingEmails()
Returns:
the list of emails

getTo

public String getTo()
who this email is going to (comma separated)

Returns:
to

getSubject

public String getSubject()
subject of email

Returns:
subject

getFrom

public String getFrom()
email address this is from

Returns:
from

getBody

public String getBody()
body of email (currently HTML is not supported, only plain text)

Returns:
body

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