Package cronapp.framework.mailer
Class MailerApi
- java.lang.Object
-
- cronapp.framework.mailer.MailerApi
-
public final class MailerApi extends Object
-
-
Constructor Summary
Constructors Constructor Description MailerApi()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddAttachment(Variable messageVar, Variable nameVar, Variable resourceVar)static voidaddBcc(Variable messageVar, Variable addressVar, Variable nameVar)static voidaddCc(Variable messageVar, Variable addressVar, Variable nameVar)static voidaddInlineAttachment(Variable contentIdVar, Variable messageVar, Variable resourceVar)static voidaddTo(Variable messageVar, Variable addressVar, Variable nameVar)static <T> TcreateMessage()static voidschedule(Variable messageVar)static voidsend(Variable messageVar)static voidsetFrom(Variable messageVar, Variable addressVar, Variable nameVar)static voidsetSubject(Variable messageVar, Variable subjectVar)static voidsetText(Variable messageVar, Variable plainTextVar, Variable htmlTextVar)
-
-
-
Method Detail
-
createMessage
public static <T> T createMessage() throws javax.mail.MessagingException- Throws:
javax.mail.MessagingException
-
addAttachment
public static void addAttachment(Variable messageVar, Variable nameVar, Variable resourceVar) throws CronappFrameworkException
- Throws:
CronappFrameworkException
-
addInlineAttachment
public static void addInlineAttachment(Variable contentIdVar, Variable messageVar, Variable resourceVar) throws Exception
- Throws:
Exception
-
setText
public static void setText(Variable messageVar, Variable plainTextVar, Variable htmlTextVar) throws CronappFrameworkException
- Throws:
CronappFrameworkException
-
addTo
public static void addTo(Variable messageVar, Variable addressVar, Variable nameVar) throws CronappFrameworkException
- Throws:
CronappFrameworkException
-
addCc
public static void addCc(Variable messageVar, Variable addressVar, Variable nameVar) throws CronappFrameworkException
- Throws:
CronappFrameworkException
-
addBcc
public static void addBcc(Variable messageVar, Variable addressVar, Variable nameVar) throws CronappFrameworkException
- Throws:
CronappFrameworkException
-
setSubject
public static void setSubject(Variable messageVar, Variable subjectVar) throws CronappFrameworkException
- Throws:
CronappFrameworkException
-
setFrom
public static void setFrom(Variable messageVar, Variable addressVar, Variable nameVar) throws CronappFrameworkException
- Throws:
CronappFrameworkException
-
send
public static void send(Variable messageVar)
-
schedule
public static void schedule(Variable messageVar) throws CronappFrameworkException
- Throws:
CronappFrameworkException
-
-