Class SendMailAction
- java.lang.Object
-
- org.nuxeo.ecm.platform.mail.action.SendMailAction
-
- All Implemented Interfaces:
MessageAction
public class SendMailAction extends Object implements MessageAction
Action to answer the mail. It expects the text of the answer to be in the context under the "message" key.- Author:
- Alexandre Russel
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.mail.Session
session
protected String
textMessage
-
Constructor Summary
Constructors Constructor Description SendMailAction(javax.mail.Session session, String textMessage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute(ExecutionContext context)
Executes one action.void
reset(ExecutionContext context)
-
-
-
Field Detail
-
session
protected final javax.mail.Session session
-
textMessage
protected final String textMessage
-
-
Constructor Detail
-
SendMailAction
public SendMailAction(javax.mail.Session session, String textMessage)
-
-
Method Detail
-
execute
public boolean execute(ExecutionContext context) throws javax.mail.MessagingException
Description copied from interface:MessageAction
Executes one action.If it returns false, the following actions from the pipe are not executed.
- Specified by:
execute
in interfaceMessageAction
- Throws:
javax.mail.MessagingException
- See Also:
ExecutionContext
-
reset
public void reset(ExecutionContext context)
- Specified by:
reset
in interfaceMessageAction
-
-