src/OwpMessaging.inc.php
private function validateData($data_array)
    {
        $required_variables = array(
                               "sender_domain",
                               "subject",
                               "message_body",
                               "email_to",
                               "email_to_name",
                               "email_from",
                               "email_from_name",
                               "reply_to",
                              );

        $missing_columns = array_diff($required_variables, array_keys($data_array));

        if($missing_columns) {
            throw new InvalidArgumentException("OwpMessaging->validateData() : The following columns are missing: ".implode(", ", $missing_columns));
        }

        return true;

    }
private function validateData($data_array)
    {
        $required_variables = array(
                               "sender_domain",
                               "subject",
                               "message_body",
                               "email_to",
                               "email_to_name",
                               "email_from",
                               "email_from_name",
                               "reply_to",
                              );

        $missing_columns = array_diff($required_variables, array_keys($data_array));

        if($missing_columns) {
            throw new InvalidArgumentException("OwpMessaging->validateData() : The following columns are missing: ".implode(", ", $missing_columns));
        }

        return true;

    }
validateData

@method validateData() Validate the arguments used to send a message.
@access private
@param  array $data_array Mail data to be validated.
@return boolean

@author  Brian Tafoya
@version 1.0