src/OwpMessaging.inc.php
public function sendEmailViaSMTP($data_array)
    {

        try {
            $message_sent = $this->sendCore($data_array, (string) getenv("smtp_hostname"));
        } catch (InvalidArgumentException $e) {
            throw new InvalidArgumentException("OwpMessaging->sendEmailViaSMTP(): Caught InvalidArgumentException: ".$e->getMessage());
        } catch (Exception $e) {
            throw new Exception("OwpMessaging->sendEmailViaSMTP(): Caught Exception: ".$e->getMessage());
        }

        return $message_sent;

    }
public function sendEmailViaSMTP($data_array)
    {

        try {
            $message_sent = $this->sendCore($data_array, (string) getenv("smtp_hostname"));
        } catch (InvalidArgumentException $e) {
            throw new InvalidArgumentException("OwpMessaging->sendEmailViaSMTP(): Caught InvalidArgumentException: ".$e->getMessage());
        } catch (Exception $e) {
            throw new Exception("OwpMessaging->sendEmailViaSMTP(): Caught Exception: ".$e->getMessage());
        }

        return $message_sent;

    }
sendEmailViaSMTP()

@method boolean sendEmailViaSMTP($data_array) Send email via mail server using the PHPMailer library.
@access public
@return boolean
@param  array $data_array Mailer data array.

@throws InvalidArgumentException Missing required argument
@throws Exception Meage send failure.

@author  Brian Tafoya
@version 1.0