Class SendMailAction
- java.lang.Object
-
- org.apache.unomi.plugins.mail.actions.SendMailAction
-
- All Implemented Interfaces:
ActionExecutor
public class SendMailAction extends Object implements ActionExecutor
-
-
Constructor Summary
Constructors Constructor Description SendMailAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
execute(Action action, Event event)
void
setMailServerHostName(String mailServerHostName)
void
setMailServerPassword(String mailServerPassword)
void
setMailServerPort(int mailServerPort)
void
setMailServerSSLOnConnect(boolean mailServerSSLOnConnect)
void
setMailServerUsername(String mailServerUsername)
void
setPersistenceService(PersistenceService persistenceService)
-
-
-
Method Detail
-
setPersistenceService
public void setPersistenceService(PersistenceService persistenceService)
-
setMailServerHostName
public void setMailServerHostName(String mailServerHostName)
-
setMailServerPort
public void setMailServerPort(int mailServerPort)
-
setMailServerUsername
public void setMailServerUsername(String mailServerUsername)
-
setMailServerPassword
public void setMailServerPassword(String mailServerPassword)
-
setMailServerSSLOnConnect
public void setMailServerSSLOnConnect(boolean mailServerSSLOnConnect)
-
execute
public int execute(Action action, Event event)
Description copied from interface:ActionExecutor
- Specified by:
execute
in interfaceActionExecutor
- Parameters:
action
- theAction
to executeevent
- theEvent
that triggered the action- Returns:
- an integer status corresponding to what happened as defined by public constants of
EventService
-
-