org.paneris.jal.model
Class Email

java.lang.Object
  extended by org.paneris.jal.model.Email

public class Email
extends java.lang.Object

Send an email to one or more recipients.


Constructor Summary
Email()
           
 
Method Summary
static void send(java.lang.String database, java.lang.String fromEmail, java.lang.String to, java.lang.String replyto, java.lang.String subject, java.lang.String message)
          Send an email.
static void send(java.lang.String database, java.lang.String fromName, java.lang.String fromEmail, java.lang.String to, java.lang.String replyto, java.lang.String subject, java.lang.String message)
          Send an email.
static void sendToList(java.lang.String database, java.lang.String fromName, java.lang.String fromEmail, java.lang.String[] toList, java.lang.String apparentlyTo, java.lang.String replyto, java.lang.String subject, java.lang.String message)
          Send an email to a list of recipients.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Email

public Email()
Method Detail

send

public static void send(java.lang.String database,
                        java.lang.String fromEmail,
                        java.lang.String to,
                        java.lang.String replyto,
                        java.lang.String subject,
                        java.lang.String message)
                 throws java.lang.Exception
Send an email.

Parameters:
database - our database name
fromEmail - email from
to - email (and name possibly) to
replyto - who to reply to (possibly "")
subject - message subject
message - message body
Throws:
java.lang.Exception - if anything goes wrong

send

public static void send(java.lang.String database,
                        java.lang.String fromName,
                        java.lang.String fromEmail,
                        java.lang.String to,
                        java.lang.String replyto,
                        java.lang.String subject,
                        java.lang.String message)
                 throws java.lang.Exception
Send an email.

Parameters:
database - our database name
fromName - name email from
fromEmail - email from
to - email (and name possibly) to
replyto - who to reply to (possibly "")
subject - message subject
message - message body
Throws:
java.lang.Exception - if anything goes wrong

sendToList

public static void sendToList(java.lang.String database,
                              java.lang.String fromName,
                              java.lang.String fromEmail,
                              java.lang.String[] toList,
                              java.lang.String apparentlyTo,
                              java.lang.String replyto,
                              java.lang.String subject,
                              java.lang.String message)
                       throws java.lang.Exception
Send an email to a list of recipients.

Parameters:
database - our database name
fromName - name email from
fromEmail - email from
to - email (and name possibly) to
toList - list of emails (possibly names) comma separated
apparentlyTo - goes in To field
replyto - who to reply to (possibly "")
subject - message subject
message - message body
Throws:
java.lang.Exception - if anything goes wrong


Copyright © 2000-2008 PanEris. All Rights Reserved.