org.ferris.dyndns.jmce.mail
Class SimpleMailMessage

java.lang.Object
  extended by org.ferris.dyndns.jmce.mail.SimpleMailMessage

public class SimpleMailMessage
extends Object


Constructor Summary
SimpleMailMessage(String smtpServer)
          Class constructor.
 
Method Summary
 void addBCC(String in_address)
           
 void addCC(String in_address)
           
 void addTo(String in_address, String in_name)
           
 javax.mail.internet.MimeMessage getMimeMessage()
           
static void main(String[] args)
          Quick Test
 void sendAsHtml()
           
 void sendAsText()
           
 void setFrom(String in_address, String in_name)
           
 void setReplyTo(String in_address)
           
 void setSubject(String in_subject)
           
 void setText(String in_text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMailMessage

public SimpleMailMessage(String smtpServer)
                  throws Exception
Class constructor.

Throws:
Excpetion - Throws an exception if the mail.properties file that specifies the SMTP server cannot be found or read.
Exception
Method Detail

setFrom

public void setFrom(String in_address,
                    String in_name)
             throws Exception
Throws:
Exception

setReplyTo

public void setReplyTo(String in_address)
                throws Exception
Throws:
Exception

addTo

public void addTo(String in_address,
                  String in_name)
           throws Exception
Throws:
Exception

addCC

public void addCC(String in_address)
           throws Exception
Throws:
Exception

addBCC

public void addBCC(String in_address)
            throws Exception
Throws:
Exception

setSubject

public void setSubject(String in_subject)
                throws Exception
Throws:
Exception

setText

public void setText(String in_text)
             throws Exception
Throws:
Exception

getMimeMessage

public javax.mail.internet.MimeMessage getMimeMessage()

sendAsText

public void sendAsText()
                throws Exception
Throws:
Exception

sendAsHtml

public void sendAsHtml()
                throws Exception
Throws:
Exception

main

public static final void main(String[] args)
                       throws Exception
Quick Test

Throws:
Exception


Copyright © May 7, 2009-2011 The Ferris Foundation. All Rights Reserved.