code: function EmailDataValidator(data) {
    MessagingUserStatus.call(this, 'email validator');
    
    if(data.from && !helpers.validateEmail(data.from)) {
      // From email address is invalid
      this.state.code = this.StatusCodes.INVALID;
      this.state.message = 'Invalid "from" email address: ' + data.from;
  
    } else if(!helpers.validateEmail(data.to)) {
      // To email address is invalid
      this.state.code = this.StatusCodes.INVALID;
      this.state.message = 'Invalid "to" email address: ' + data.to;
  
    } else if(!helpers.validateMessage(data.subject)) {
      // Subject string is invalid
      this.state.code = this.StatusCodes.INVALID;
      this.state.message = 'Invalid subject: ' + data.subject;
  
    } else if(!helpers.validateMessage(data.message)) {
      // Message string is invalid
      this.state.code = this.StatusCodes.INVALID;
      this.state.message = 'Invalid message: ' + data.message;
  
    } else {
      // Input data is valid
      this.state.code = this.StatusCodes.VALID;
      this.state.message = 'Ok';
    }
  }
docs: /*=============================================================================
  
  Define Data Validation Handlers
  
  ============================================================================= /*
  Email validation
  
  @param data         The content of the email