com.silverpeas.util
Class MailUtil

java.lang.Object
  extended by com.silverpeas.util.MailUtil

public class MailUtil
extends Object

Author:
ehugonnet

Field Summary
static ResourceLocator 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
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 ResourceLocator 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

getAuthorizedEmail

public static String getAuthorizedEmail(String email)

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()


Copyright © 2016 Silverpeas. All Rights Reserved.