org.ferris.dyndns.jmce.mail
Class SimpleMailMessage
java.lang.Object
org.ferris.dyndns.jmce.mail.SimpleMailMessage
public class SimpleMailMessage
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.