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.
-
EmailSender(Jagg)
- Creates a Email sender.
-
sendMessage()
- Send the message.
-
setAttachment(String)
- Set the attachment file path.
-
setCCAddresses(String)
- Set the cc address.
-
setMailServer(String)
- Set the name of the mail server.
-
setMessage(String)
- Set the message.
-
setMessageSubject(String)
- Set the message subject.
-
setReturnAddress(String)
- Set the return address.
-
setToAddress(String)
- Set the to address(es).
EmailSender
public EmailSender(Jagg jaggSQL)
- Creates a Email sender.
- Parameters:
- Jagg - instance for email merge with a database.
setMailServer
public void setMailServer(String mailServer)
- Set the name of the mail server.
- Parameters:
- mailServer - the name of the mail server.
setReturnAddress
public void setReturnAddress(String returnAddress)
- Set the return address.
- Parameters:
- returnAddress - the return address.
setCCAddresses
public void setCCAddresses(String cc)
- Set the cc address. Separate
with commas to send to multiple addresses.
- Parameters:
- cc - the cc addresses.
setMessageSubject
public void setMessageSubject(String messageSubject)
- Set the message subject.
- Parameters:
- messageSubject - the message subject.
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.
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.
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.
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