org.opennms.netmgt.utils
Class JavaMailer
java.lang.Object
org.opennms.netmgt.utils.JavaMailer
public class JavaMailer
- extends Object
Sends an email message using the Java Mail API
- Author:
- David Hustace
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaMailer
public JavaMailer()
mailSend
public void mailSend()
throws JavaMailerException
- Sends a message based on properties set on this bean.
- Throws:
JavaMailerException
getPassword
public String getPassword()
- Returns:
- Returns the password.
setPassword
public void setPassword(String password)
- Parameters:
password - The password to set.
getUser
public String getUser()
- Returns:
- Returns the user.
setUser
public void setUser(String user)
- Parameters:
user - The user to set.
isUseJMTA
public boolean isUseJMTA()
- Returns:
- Returns the _useMailHost.
setUseJMTA
public void setUseJMTA(boolean useMTA)
- Parameters:
mailHost - The _useMailHost to set.
getFrom
public String getFrom()
- Returns:
- Returns the from address.
setFrom
public void setFrom(String from)
- Parameters:
from - The from address to set.
isAuthenticate
public boolean isAuthenticate()
- Returns:
- Returns the authenticate boolean.
isStartTlsEnabled
public boolean isStartTlsEnabled()
isQuitWait
public boolean isQuitWait()
getSmtpPort
public int getSmtpPort()
isSmtpSsl
public boolean isSmtpSsl()
setAuthenticate
public void setAuthenticate(boolean authenticate)
- Parameters:
authenticate - The authenticate boolean to set.
getFileName
public String getFileName()
- Returns:
- Returns the file name attachment.
setFileName
public void setFileName(String fileName)
- Parameters:
file - Sets the file name to be attached to the messaget.
getMailHost
public String getMailHost()
- Returns:
- Returns the mail host.
setMailHost
public void setMailHost(String mail_host)
- Parameters:
mail_host - Sets the mail host.
getMailer
public String getMailer()
- Returns:
- Returns the mailer.
setMailer
public void setMailer(String mailer)
- Parameters:
mailer - Sets the mailer.
getMessageText
public String getMessageText()
- Returns:
- Returns the message text.
setMessageText
public void setMessageText(String messageText)
- Parameters:
messageText - Sets the message text.
getSubject
public String getSubject()
- Returns:
- Returns the message Subject.
setSubject
public void setSubject(String subject)
- Parameters:
subject - Sets the message Subject.
getTo
public String getTo()
- Returns:
- Returns the To address.
setTo
public void setTo(String to)
- Parameters:
to - Sets the To address.
getTransport
public String getTransport()
setTransport
public void setTransport(String transport)
isDebug
public boolean isDebug()
setDebug
public void setDebug(boolean debug)
Copyright ? 2007. All Rights Reserved.