public enum EmailMessageAttachmentTextNewLine extends Enum<EmailMessageAttachmentTextNewLine>
JavaMailSessionBuilderFactory.INSTANCE| Enum Constant and Description |
|---|
UNCHANGED
RARE: Do not change any new-lines when creating a text attachment.
|
UNIX
RARE: Convert all new-lines to UNX new-lines:
\n. |
WINDOWS
This is the most common choice.
|
| Modifier and Type | Method and Description |
|---|---|
static EmailMessageAttachmentTextNewLine |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EmailMessageAttachmentTextNewLine[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EmailMessageAttachmentTextNewLine WINDOWS
Convert all new-lines to Microsoft Windows new-lines: \r\n. As of 2020, most corporate email is read by
regular users using Microsoft Outlook. It is nice to convert new-lines before sending text attachments.
public static final EmailMessageAttachmentTextNewLine UNCHANGED
public static final EmailMessageAttachmentTextNewLine UNIX
\n. This will be surprising for Windows users.public static EmailMessageAttachmentTextNewLine[] values()
for (EmailMessageAttachmentTextNewLine c : EmailMessageAttachmentTextNewLine.values()) System.out.println(c);
public static EmailMessageAttachmentTextNewLine valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2013–2020. All rights reserved.