Package com.kheops.util
Class KMailService
java.lang.Object
com.kheops.util.KMailService
This class enables email sending
-
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
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
-