Package org.silverpeas.core.util
Class MailUtil
- java.lang.Object
-
- org.silverpeas.core.util.MailUtil
-
public class MailUtil extends Object
- Author:
- ehugonnet
-
-
Field Summary
Fields Modifier and Type Field Description static org.silverpeas.kernel.bundle.SettingBundle
configuration
static String
SMTP_AUTH
static String
SMTP_DEBUG
static String
SMTP_LOGIN
static String
SMTP_PASSWORD
static String
SMTP_PORT
static String
SMTP_SECURE
static String
SMTP_SERVER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getAuthorizedEmail(String email)
static javax.mail.internet.InternetAddress
getAuthorizedEmailAddress(String pFrom, String personalName)
static String
getLogin()
static String
getMailServer()
static String
getPassword()
static int
getPort()
static boolean
isAuthenticated()
static boolean
isDebug()
static boolean
isDomainAuthorized(String email)
static boolean
isForceReplyToSenderField()
static boolean
isSecure()
-
-
-
Field Detail
-
SMTP_SERVER
public static final String SMTP_SERVER
- See Also:
- Constant Field Values
-
SMTP_AUTH
public static final String SMTP_AUTH
- See Also:
- Constant Field Values
-
SMTP_PORT
public static final String SMTP_PORT
- See Also:
- Constant Field Values
-
SMTP_LOGIN
public static final String SMTP_LOGIN
- See Also:
- Constant Field Values
-
SMTP_PASSWORD
public static final String SMTP_PASSWORD
- See Also:
- Constant Field Values
-
SMTP_DEBUG
public static final String SMTP_DEBUG
- See Also:
- Constant Field Values
-
SMTP_SECURE
public static final String SMTP_SECURE
- See Also:
- Constant Field Values
-
configuration
public static final org.silverpeas.kernel.bundle.SettingBundle configuration
-
-
Method Detail
-
isForceReplyToSenderField
public static boolean isForceReplyToSenderField()
-
isDomainAuthorized
public static boolean isDomainAuthorized(String email)
-
getAuthorizedEmailAddress
public static javax.mail.internet.InternetAddress getAuthorizedEmailAddress(String pFrom, String personalName) throws javax.mail.internet.AddressException, UnsupportedEncodingException
- Throws:
javax.mail.internet.AddressException
UnsupportedEncodingException
-
getMailServer
public static String getMailServer()
-
isAuthenticated
public static boolean isAuthenticated()
-
isDebug
public static boolean isDebug()
-
getLogin
public static String getLogin()
-
getPassword
public static String getPassword()
-
getPort
public static int getPort()
-
isSecure
public static boolean isSecure()
-
-