03-06-2010 10:43 AM
03-06-2010 03:23 PM
03-07-2010 05:06 AM
03-07-2010 06:18 AM
/**
* Return true if address has valid format
* @param address
* @return
*/
private boolean validateAddress(String address)
{
boolean result = false;
EmailValidator emailValidator = EmailValidator.getInstance();
if (emailValidator.isValid(address))
{
result = true;
}
else
{
logger.error("Failed to send email to '" + address + "' as the address is incorrectly formatted" );
}
return result;
}
This code is in MailActionExecuter.java (perhaps .class) in org.alfresco.repo.action.executer package inside alfresco-repository-3.2r2.jar in <ALF_HOME>\tomcat\webapps\alfresco\WEB-INF\lib\03-07-2010 03:47 PM
03-07-2010 04:30 PM
12-09-2011 05:12 AM
Hi sselvan I will test your solution , thank you so much
12-09-2011 05:18 AM
private boolean validateAddress(String address)
{
boolean result = false;
EmailValidator emailValidator = EmailValidator.getInstance();
if (emailValidator.isValid(address))
{
result = true;
}
private boolean validateAddress(String address)
{
boolean result = true;
EmailValidator emailValidator = EmailValidator.getInstance();
if (emailValidator.isValid(address))
{
result = true;
}
12-09-2011 05:19 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.