public class KMailService
extends java.lang.Object
| Constructor and Description |
|---|
KMailService() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
This main method is used for test purposes
|
static boolean |
sendMail(java.lang.String subject,
java.lang.String text,
java.lang.String to,
java.lang.String from,
java.lang.String SMTPServer)
Sends an e-mail message using the specified parameters.
|
static boolean |
sendMail(java.lang.String subject,
java.lang.String text,
java.lang.String to,
java.lang.String cc,
java.lang.String bcc,
java.lang.String from,
java.lang.String[] attachments,
java.lang.String SMTPServer)
Sends an e-mail message using the specified parameters.
|
public static boolean sendMail(java.lang.String subject,
java.lang.String text,
java.lang.String to,
java.lang.String from,
java.lang.String SMTPServer)
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 serverpublic static boolean sendMail(java.lang.String subject,
java.lang.String text,
java.lang.String to,
java.lang.String cc,
java.lang.String bcc,
java.lang.String from,
java.lang.String[] attachments,
java.lang.String SMTPServer)
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 serverpublic static void main(java.lang.String[] args)