Package com.kheops.util
Class KMailService
java.lang.Object
com.kheops.util.KMailService
This class enables email sending
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
This main method is used for test purposesstatic boolean
Sends an e-mail message using the specified parameters.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.
-
Constructor Details
-
KMailService
public KMailService()
-
-
Method Details
-
sendMail
public 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 messagetext
- the text of the messageto
- the recipient adresses of the message seprarated by spacesfrom
- the reply address of the messageSMTPServer
- the smtp server- Returns:
- status true if the mail as been send successfully false otherwise
-
sendMail
public 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 messagetext
- the text of the messageto
- the recipient adresses of the message seprarated by spacescc
- the copy ... adresses of the message seprarated by spacesbcc
- the ... adresses of the message seprarated by spacesfrom
- the reply address of the messageattachments
- the attachementSMTPServer
- the smtp server- Returns:
- status true if the mail as been send successfully false otherwise
-
main
This main method is used for test purposes
-