| java.lang.Object org.jaffa.util.EmailHelper
EmailHelper | public class EmailHelper (Code) | | Routines for sending emails, with Microsoft Excel Attachements
version: 1.0 author: PaulE since: 1.3 |
Method Summary | |
public static void | emailExcel(String smtpHost, String smtpLocalhost, String smtpUser, String smtpPass, String from, String[] to, String subject, String bodyText, TableModel excelData) Sends an email with an Excel spreadsheet as an attachment
Parameters: smtpLocalhost - (Optional) Name of host sending message, used in the HELO message forserver authentication Parameters: smtpUser - (Optional) User name to authenticate to mail server. |
emailExcel | public static void emailExcel(String smtpHost, String smtpLocalhost, String smtpUser, String smtpPass, String from, String[] to, String subject, String bodyText, TableModel excelData) throws MessagingException(Code) | | Sends an email with an Excel spreadsheet as an attachment
Parameters: smtpLocalhost - (Optional) Name of host sending message, used in the HELO message forserver authentication Parameters: smtpUser - (Optional) User name to authenticate to mail server. Not needed if serveris an 'open relay' Parameters: smtpPass - (Optional) Password to authenticate to mail server. Not needed if serveris an 'open relay' Parameters: smtpHost - (REQUIRED) name of mail server ie mail.yahoo.com Parameters: from - (REQUIRED) from email ie paul@yahoo.com Parameters: to - (REQUIRED) array of strings to send email to ie bob@yahoo.com Parameters: subject - Text for the email subject (defaults to 'No Subject' if null) Parameters: bodyText - Text for the main mail's body, in addition to the attachment Parameters: excelData - Data to convert to spread sheet. Mkae sure to specify 'String' as a datatype on columns thatexcel should not auto format throws: MessagingException - Contains error if message could not be sent |
|
|