public class MailEventMessenger extends Object implements EventMessengerInterface, EventHistoryListener
DISABLED, EVENT_FILTER| Constructor and Description |
|---|
MailEventMessenger()
Creates a new MailEventMessenger.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
The EventMessenger should do cleaning up it needs before it dies.
|
String[] |
getItems()
Gets the name of the items that should be in the ini-file for this event messenger.
|
String |
getLastError(boolean reset)
Method to access the latest error.
|
String |
getName()
Gets corresponding name of this class in the ini-file
|
int |
getSendState()
Return our send state
0=started, 1=stopped, 2=disabled, 3=error
|
void |
loadIniParams(IniFile ini)
Reads the MailEventMessengers section in the server.ini.
|
void |
processEvent(ServerEvent event)
A new server event has been processed by the event exit.
|
boolean |
setSendState(int flag)
0 = start, 1 = stopp, 2 = disable
General: If our internal state equals the flag, do nothing.
|
public MailEventMessenger()
It creates a new SendMail instance, that will be kept alive until somebody calls it's dispose method (hopefully it will be the EventManager that does it).
public void loadIniParams(IniFile ini)
loadIniParams in interface EventMessengerInterfaceini - The ini file.public void processEvent(ServerEvent event)
processEvent in interface EventHistoryListenerpublic void dispose()
dispose in interface EventMessengerInterfacepublic String[] getItems()
getItems in interface EventMessengerInterfacepublic String getName()
getName in interface EventMessengerInterfacepublic int getSendState()
getSendState in interface EventMessengerInterfacepublic boolean setSendState(int flag)
setSendState in interface EventMessengerInterfacepublic String getLastError(boolean reset)
EventMessengerInterfacegetLastError in interface EventMessengerInterfacePhantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.