Package com.kheops.util
Class KMailService
java.lang.Object
com.kheops.util.KMailService
This class enables email sending
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidThis main method is used for test purposesstatic booleanSends an e-mail message using the specified parameters.static booleansendMail(String subject, String text, String to, String cc, String bcc, String from, String[] attachments, String SMTPServer) Sends an e-mail message using the specified parameters.
- 
Constructor Details- 
KMailServicepublic KMailService()
 
- 
- 
Method Details- 
sendMailpublic static boolean sendMail(String subject, String text, String to, String from, String SMTPServer) Sends an e-mail message using the specified parameters.- Parameters:
- subject- the subject of the message
- text- the text of the message
- to- the recipient adresses of the message seprarated by spaces
- from- the reply address of the message
- SMTPServer- the smtp server
- Returns:
- status true if the mail as been send successfully false otherwise
 
- 
sendMailpublic static boolean sendMail(String subject, String text, String to, String cc, String bcc, String from, String[] attachments, String SMTPServer) Sends an e-mail message using the specified parameters.- Parameters:
- subject- the subject of the message
- text- the text of the message
- to- the recipient adresses of the message seprarated by spaces
- cc- the copy ... adresses of the message seprarated by spaces
- bcc- the ... adresses of the message seprarated by spaces
- from- the reply address of the message
- attachments- the attachement
- SMTPServer- the smtp server
- Returns:
- status true if the mail as been send successfully false otherwise
 
- 
mainThis main method is used for test purposes
 
-