All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.bulletproof.sql.EmailSender

java.lang.Object
   |
   +----com.bulletproof.sql.EmailSender

public class EmailSender
extends Object
Class EmailSender represents an interface the the JaggServer email mechanism.


Constructor Index

 o EmailSender(Jagg)
Creates a Email sender.

Method Index

 o sendMessage()
Send the message.
 o setAttachment(String)
Set the attachment file path.
 o setCCAddresses(String)
Set the cc address.
 o setMailServer(String)
Set the name of the mail server.
 o setMessage(String)
Set the message.
 o setMessageSubject(String)
Set the message subject.
 o setReturnAddress(String)
Set the return address.
 o setToAddress(String)
Set the to address(es).

Constructors

 o EmailSender
 public EmailSender(Jagg jaggSQL)
Creates a Email sender.

Parameters:
Jagg - instance for email merge with a database.

Methods

 o setMailServer
 public void setMailServer(String mailServer)
Set the name of the mail server.

Parameters:
mailServer - the name of the mail server.
 o setReturnAddress
 public void setReturnAddress(String returnAddress)
Set the return address.

Parameters:
returnAddress - the return address.
 o setCCAddresses
 public void setCCAddresses(String cc)
Set the cc address. Separate with commas to send to multiple addresses.

Parameters:
cc - the cc addresses.
 o setMessageSubject
 public void setMessageSubject(String messageSubject)
Set the message subject.

Parameters:
messageSubject - the message subject.
 o setMessage
 public void setMessage(String message)
Set the message. This is used for single messages or for message merging.

Parameters:
message - the message to send.
 o setToAddress
 public void setToAddress(String toAddress)
Set the to address(es). This is only used for single messages. Separate with commas to send to multiple addresses.

Parameters:
toAddress - the to address of the message.
 o setAttachment
 public void setAttachment(String attachment)
Set the attachment file path. This is only used for single messages.

Parameters:
attachment - the path and file name on the server to the attachment.
 o sendMessage
 public String sendMessage()
Send the message. If the mailServer, fromAddress, messageSubject, toAddress and message have all been set then this method is used to send the message.

Returns:
a completion message from the server

All Packages  Class Hierarchy  This Package  Previous  Next  Index