public class MailTools
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.regex.Pattern |
PATTERN |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
buildMailToString(java.lang.String email,
java.util.Collection<java.lang.String> ccs,
java.lang.String subject,
java.lang.String body)
Builds a String for the given parameters to build an URI from.
|
static java.lang.String |
buildMailToString(java.lang.String email,
java.lang.String subject,
java.lang.String body)
Builds a String for the given parameters to build an URI from.
|
static java.lang.String |
buildOutlookStartCommand(java.lang.String email,
java.util.Collection<java.lang.String> ccs,
java.io.File attachment) |
static java.lang.String |
buildOutlookStartCommand(java.lang.String email,
java.util.Collection<java.lang.String> ccs,
java.io.File attachment,
java.lang.String subject) |
static java.lang.String |
buildOutlookStartCommand(java.lang.String email,
java.util.Collection<java.lang.String> ccs,
java.io.File attachment,
java.lang.String subject,
java.lang.String body) |
static java.lang.String |
buildOutlookStartCommand(java.lang.String email,
java.io.File attachment) |
static java.lang.String |
buildOutlookStartCommand(java.lang.String email,
java.io.File attachment,
java.lang.String subject) |
static java.lang.String |
buildOutlookStartCommand(java.lang.String email,
java.io.File attachment,
java.lang.String subject,
java.lang.String body) |
static boolean |
isValidEmailAdress(java.lang.String s)
Decides if the passed String represents a valid email address.
|
static boolean |
mailTo(java.lang.String email)
Tries to open a message compose window for the given email trying various methods.
|
static boolean |
mailTo(java.lang.String email,
java.util.Collection<java.lang.String> ccs)
Tries to open a message compose window for the given email and cc addresses trying various methods.
|
static boolean |
mailTo(java.lang.String email,
java.util.Collection<java.lang.String> ccs,
java.lang.String subject) |
static boolean |
mailTo(java.lang.String email,
java.util.Collection<java.lang.String> ccs,
java.lang.String subject,
java.lang.String body) |
static boolean |
mailTo(java.lang.String email,
java.lang.String subject) |
static boolean |
mailTo(java.lang.String email,
java.lang.String subject,
java.lang.String body) |
static boolean |
mailToWithAttachment(java.lang.String email,
java.util.Collection<java.lang.String> ccs,
java.io.File attachment)
Tries to open a message compose window for the given email and cc addresses and file to attach.
|
static boolean |
mailToWithAttachment(java.lang.String email,
java.util.Collection<java.lang.String> ccs,
java.io.File attachment,
java.lang.String subject) |
static boolean |
mailToWithAttachment(java.lang.String email,
java.util.Collection<java.lang.String> ccs,
java.io.File attachment,
java.lang.String subject,
java.lang.String body) |
static boolean |
mailToWithAttachment(java.lang.String email,
java.util.Collection<java.lang.String> ccs,
java.io.File attachment,
java.lang.String subject,
java.lang.String body,
boolean doSignal) |
static boolean |
mailToWithAttachment(java.lang.String email,
java.io.File attachment)
Tries to open a message compose window for the given email and file to attach.
|
static boolean |
mailToWithAttachment(java.lang.String email,
java.io.File attachment,
java.lang.String subject) |
static boolean |
mailToWithAttachment(java.lang.String email,
java.io.File attachment,
java.lang.String subject,
java.lang.String body) |
static boolean |
mailToWithAttachment(java.lang.String email,
java.io.File attachment,
java.lang.String subject,
java.lang.String body,
boolean doSignal) |
public static boolean isValidEmailAdress(java.lang.String s)
public static boolean mailToWithAttachment(java.lang.String email, java.io.File attachment)
email
- the recipient email addressattachment
- the File to attach to the emailsubject
- the mail subject to usebody
- the mail body to usedoSignal
- if true, an IRuntimeException will be raised if false would be returned; defaults to falsetrue
if a new email could successfully be opened with the given arguments{@link
- de.ipcon.tools.IRuntimeException IRuntimeException} if doSignal was passed as true and the operation failedpublic static boolean mailToWithAttachment(java.lang.String email, java.io.File attachment, java.lang.String subject)
public static boolean mailToWithAttachment(java.lang.String email, java.io.File attachment, java.lang.String subject, java.lang.String body)
public static boolean mailToWithAttachment(java.lang.String email, java.io.File attachment, java.lang.String subject, java.lang.String body, boolean doSignal)
public static boolean mailToWithAttachment(java.lang.String email, java.util.Collection<java.lang.String> ccs, java.io.File attachment)
email
- the recipient email addressccs
- the CC email addressesattachment
- the File to attach to the emailsubject
- the mail subject to usebody
- the mail body to usedoSignal
- if true, an IRuntimeException will be raised if false would be returned; defaults to falsetrue
if a new email could successfully be opened with the given arguments{@link
- de.ipcon.tools.IRuntimeException IRuntimeException} if doSignal was passed as true and the operation failedpublic static boolean mailToWithAttachment(java.lang.String email, java.util.Collection<java.lang.String> ccs, java.io.File attachment, java.lang.String subject)
public static boolean mailToWithAttachment(java.lang.String email, java.util.Collection<java.lang.String> ccs, java.io.File attachment, java.lang.String subject, java.lang.String body)
public static boolean mailToWithAttachment(java.lang.String email, java.util.Collection<java.lang.String> ccs, java.io.File attachment, java.lang.String subject, java.lang.String body, boolean doSignal)
public static java.lang.String buildOutlookStartCommand(java.lang.String email, java.io.File attachment)
public static java.lang.String buildOutlookStartCommand(java.lang.String email, java.io.File attachment, java.lang.String subject)
public static java.lang.String buildOutlookStartCommand(java.lang.String email, java.io.File attachment, java.lang.String subject, java.lang.String body)
public static java.lang.String buildOutlookStartCommand(java.lang.String email, java.util.Collection<java.lang.String> ccs, java.io.File attachment)
public static java.lang.String buildOutlookStartCommand(java.lang.String email, java.util.Collection<java.lang.String> ccs, java.io.File attachment, java.lang.String subject)
public static java.lang.String buildOutlookStartCommand(java.lang.String email, java.util.Collection<java.lang.String> ccs, java.io.File attachment, java.lang.String subject, java.lang.String body)
public static boolean mailTo(java.lang.String email)
email
- the recipient email addresssubject
- the mail subject to usebody
- the mail body to usetrue
if a new email could successfully be opened with the given argumentspublic static boolean mailTo(java.lang.String email, java.lang.String subject)
public static boolean mailTo(java.lang.String email, java.lang.String subject, java.lang.String body)
public static boolean mailTo(java.lang.String email, java.util.Collection<java.lang.String> ccs)
email
- the recipient email addressccs
- the CC email addressessubject
- the mail subject to usebody
- the mail body to usetrue
if a new email could successfully be opened with the given argumentspublic static boolean mailTo(java.lang.String email, java.util.Collection<java.lang.String> ccs, java.lang.String subject)
public static boolean mailTo(java.lang.String email, java.util.Collection<java.lang.String> ccs, java.lang.String subject, java.lang.String body)
public static java.lang.String buildMailToString(java.lang.String email, java.lang.String subject, java.lang.String body)
email
- the recipient email addresssubject
- the mail subject to usebody
- the mail body to usepublic static java.lang.String buildMailToString(java.lang.String email, java.util.Collection<java.lang.String> ccs, java.lang.String subject, java.lang.String body)
email
- the recipient email addressccs
- the CC email addressessubject
- the mail subject to usebody
- the mail body to useCopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.