public class EmailModule
extends java.lang.Object
| Constructor and Description |
|---|
EmailModule() |
| Modifier and Type | Method and Description |
|---|---|
static void |
mail(ISMTPConfiguration configuration,
java.lang.String msg,
java.lang.String subject,
java.util.List<java.lang.String> to,
java.util.List<java.lang.String> cc,
java.util.List<java.lang.String> bcc,
IContext context,
java.util.List<IMendixObject> attachments)
Sends an email to to, cc and bcc with subject subject and message msg width attachments attachments using settings in configuration.
|
static void |
mail(ISMTPConfiguration configuration,
java.lang.String msg,
java.lang.String subject,
java.lang.String to)
Sends an email to to with subject subject and message msg.
|
static void |
mail(ISMTPConfiguration configuration,
java.lang.String msg,
java.lang.String subject,
java.lang.String to,
IContext context,
IMendixObject attachment) |
static void |
mail(ISMTPConfiguration configuration,
java.lang.String htmlmsg,
java.lang.String plainmsg,
java.lang.String subject,
java.util.List<java.lang.String> to,
java.util.List<java.lang.String> cc,
java.util.List<java.lang.String> bcc,
IContext context,
java.util.List<IMendixObject> attachments) |
static void |
mail(ISMTPConfiguration configuration,
java.lang.String htmlmsg,
java.lang.String plainmsg,
java.lang.String subject,
java.lang.String to)
Sends an email to to with subject subject and message as html, the shown message will be htmlmsg.
|
static void |
mail(ISMTPConfiguration configuration,
java.lang.String htmlmsg,
java.lang.String plainmsg,
java.lang.String subject,
java.lang.String to,
IContext context,
IMendixObject attachment) |
public static void mail(ISMTPConfiguration configuration, java.lang.String msg, java.lang.String subject, java.lang.String to) throws CoreException
configuration - msg - The message to sendsubject - The subject of the emailto - The recipientCoreExceptionpublic static void mail(ISMTPConfiguration configuration, java.lang.String msg, java.lang.String subject, java.util.List<java.lang.String> to, java.util.List<java.lang.String> cc, java.util.List<java.lang.String> bcc, IContext context, java.util.List<IMendixObject> attachments) throws CoreException
configuration - an SMTPConfiguration to send your email with.msg - the message to send.subject - the subject of the email.to - the recipients of the email message.cc - the CC recipients.bcc - the BCC recipients.context - this context will be used to check if the current user has the rights to access to the attachments.attachments - the attachments you want to send along with the email.CoreExceptionpublic static void mail(ISMTPConfiguration configuration, java.lang.String htmlmsg, java.lang.String plainmsg, java.lang.String subject, java.util.List<java.lang.String> to, java.util.List<java.lang.String> cc, java.util.List<java.lang.String> bcc, IContext context, java.util.List<IMendixObject> attachments) throws CoreException
configuration - an SMTPConfiguration which contains all information to send your emailhtmlmsg - the message body as html text this is what most of the recipients will see.plainmsg - the message in plain text (this will be shown if the recipient doesn't accept html messages).subject - the subject of the email.to - the recipients of the email message.cc - the CC recipients.bcc - the BCC recipients.context - this context will be used to check if the current user has the rights to access to the attachments.attachments - the attachments to be sent along with the email.CoreExceptionpublic static void mail(ISMTPConfiguration configuration, java.lang.String htmlmsg, java.lang.String plainmsg, java.lang.String subject, java.lang.String to) throws CoreException
configuration - htmlmsg - plainmsg - subject - to - CoreExceptionpublic static void mail(ISMTPConfiguration configuration, java.lang.String msg, java.lang.String subject, java.lang.String to, IContext context, IMendixObject attachment) throws CoreException
configuration - an SMTPConfiguration which contains all information to send your email.msg - the message body that will be send.subject - the subject of the email.to - the recipient of the email message.context - this context will be used to check if the current user has the rights to access to the attachments.attachment - the attachment to be sent along with the email.CoreExceptionpublic static void mail(ISMTPConfiguration configuration, java.lang.String htmlmsg, java.lang.String plainmsg, java.lang.String subject, java.lang.String to, IContext context, IMendixObject attachment) throws CoreException
configuration - an SMTPConfiguration which contains all information to send your email.htmlmsg - the message body as html text this is what most of the recipients will see.plainmsg - the message in plain text (this will be shown if the recipient doesn't accept html messages).subject - the subject of the email.to - the recipient of the email message.context - this context will be used to check if the current user has the rights to access to the attachments.attachment - the attachment to be sent along with the email.CoreException