Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. global class TerminateInboundEmailHandler implements Messaging.InboundEmailHandler {
  2. global Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail email, Messaging.InboundEnvelope envelope) {
  3. Messaging.InboundEmailResult result = new Messaging.InboundEmailResult();
  4. if ( email.subject == 'Employee Status' ) {
  5. TerminateController.getInstance().terminate(email.plainTextBody);
  6. }
  7. result.success = true;
  8. return result;
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement