com.dotmarketing.util
Class Mailer

java.lang.Object
  extended by com.dotmarketing.util.Mailer

public class Mailer
extends java.lang.Object

Description of the Class

Author:
will

Constructor Summary
Mailer()
           
 
Method Summary
 void addAttachment(java.io.File file)
           
 java.lang.String getBcc()
          Returns the bcc.
 java.lang.String getCc()
          Returns the cc.
 java.lang.String getErrorMessage()
          Returns the errorMessage.
 java.lang.String getFromEmail()
          Returns the fromEmail.
 java.lang.String getFromName()
          Returns the fromName.
 long getRecipientId()
          Returns the recipientId.
 java.lang.String getResult()
          Returns the result.
 java.lang.String getSubject()
          Returns the subject.
 java.lang.String getToEmail()
          Returns the toEmail.
 java.lang.String getToName()
          Returns the toName.
 boolean sendMessage()
          Description of the Method
 void setBcc(java.lang.String x)
           
 void setCc(java.lang.String x)
           
 void setErrorMessage(java.lang.String errorMessage)
          Sets the errorMessage.
 void setFromEmail(java.lang.String fromEmail)
          Sets the fromEmail.
 void setFromName(java.lang.String x)
           
 void setHTMLAndTextBody(java.lang.String HTMLBody)
           
 void setHTMLBody(java.lang.String HTMLBody)
           
 void setRecipientId(long recipientId)
          Sets the recipientId.
 void setSubject(java.lang.String x)
           
 void setTextBody(java.lang.String TextBody)
           
 void setToEmail(java.lang.String toEmail)
          Sets the toEmail.
 void setToName(java.lang.String x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mailer

public Mailer()
Method Detail

setBcc

public void setBcc(java.lang.String x)

getBcc

public java.lang.String getBcc()
Returns the bcc.

Returns:
String

setCc

public void setCc(java.lang.String x)

getCc

public java.lang.String getCc()
Returns the cc.

Returns:
String

setErrorMessage

public void setErrorMessage(java.lang.String errorMessage)
Sets the errorMessage.

Parameters:
errorMessage - The errorMessage to set

getErrorMessage

public java.lang.String getErrorMessage()
Returns the errorMessage.

Returns:
String

setFromEmail

public void setFromEmail(java.lang.String fromEmail)
Sets the fromEmail.

Parameters:
fromEmail - The fromEmail to set

getFromEmail

public java.lang.String getFromEmail()
Returns the fromEmail.

Returns:
String

setFromName

public void setFromName(java.lang.String x)

getFromName

public java.lang.String getFromName()
Returns the fromName.

Returns:
String

setHTMLAndTextBody

public void setHTMLAndTextBody(java.lang.String HTMLBody)

setHTMLBody

public void setHTMLBody(java.lang.String HTMLBody)

setRecipientId

public void setRecipientId(long recipientId)
Sets the recipientId.

Parameters:
recipientId - The recipientId to set

getRecipientId

public long getRecipientId()
Returns the recipientId.

Returns:
int

getResult

public java.lang.String getResult()
Returns the result.

Returns:
String

setSubject

public void setSubject(java.lang.String x)

getSubject

public java.lang.String getSubject()
Returns the subject.

Returns:
String

setTextBody

public void setTextBody(java.lang.String TextBody)

setToEmail

public void setToEmail(java.lang.String toEmail)
Sets the toEmail.

Parameters:
toEmail - The toEmail to set

getToEmail

public java.lang.String getToEmail()
Returns the toEmail.

Returns:
String

setToName

public void setToName(java.lang.String x)

getToName

public java.lang.String getToName()
Returns the toName.

Returns:
String

addAttachment

public void addAttachment(java.io.File file)

sendMessage

public boolean sendMessage()
Description of the Method



Copyright © 2006 Dotmarketing, Inc. All Rights Reserved.