org.opengts.util
Class SendMailArgs

java.lang.Object
  extended by org.opengts.util.SendMailArgs

public class SendMailArgs
extends java.lang.Object


Field Summary
static java.lang.String SSL_FACTORY
           
static boolean USE_AUTHENTICATOR
           
 
Constructor Summary
SendMailArgs()
           
 
Method Summary
static void main(java.lang.String[] argv)
           
static java.lang.String parseEMailAddress(java.lang.String addr)
          Filters and returns the base email address from the specified String.
For example, if the String "Jones<jones@example.com>" is passed to this method, then the value "jones@example.com" will be returned.
static void send(SendMail.Args args)
          Internal method to send email
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USE_AUTHENTICATOR

public static final boolean USE_AUTHENTICATOR
See Also:
Constant Field Values

SSL_FACTORY

public static final java.lang.String SSL_FACTORY
See Also:
Constant Field Values
Constructor Detail

SendMailArgs

public SendMailArgs()
Method Detail

parseEMailAddress

public static java.lang.String parseEMailAddress(java.lang.String addr)
Filters and returns the base email address from the specified String.
For example, if the String "Jones<jones@example.com>" is passed to this method, then the value "jones@example.com" will be returned.

Parameters:
addr - The email address to filter.
Returns:
The filtered email address, or null if the specified email address is invalid.

send

public static void send(SendMail.Args args)
                 throws SendMail.SendMailException
Internal method to send email

Parameters:
args - The email arguments
Throws:
SendMail.SendMailException - if an error occurs

main

public static void main(java.lang.String[] argv)