Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global class TerminateInboundEmailHandler implements Messaging.InboundEmailHandler {
- global Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail email, Messaging.InboundEnvelope envelope) {
- Messaging.InboundEmailResult result = new Messaging.InboundEmailResult();
- if ( email.subject == 'Employee Status' ) {
- TerminateController.getInstance().terminate(email.plainTextBody);
- }
- result.success = true;
- return result;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement