src/OwpMessaging.inc.php
public function sendEmailDirect($data_array)
    {
        try {
            $email_to_clean     = filter_var($data_array["email_to"], FILTER_SANITIZE_EMAIL);
            list($to_addy_info) = imap_rfc822_parse_adrlist($email_to_clean, "");
            $dns_get_mx         = dns_get_record($to_addy_info->host, DNS_MX);
            $ip           = gethostbyname($dns_get_mx[0]["target"]);
            $message_sent = $this->sendCore($data_array, (string) $ip);
        } catch (InvalidArgumentException $e) {
            throw new InvalidArgumentException("OwpMessaging->sendEmailDirect(): Caught InvalidArgumentException: ".$e->getMessage());
        } catch (Exception $e) {
            throw new Exception("OwpMessaging->sendEmailDirect(): Caught Exception: ".$e->getMessage());
        }

        return $message_sent;

    }
public function sendEmailDirect($data_array)
    {
        try {
            $email_to_clean     = filter_var($data_array["email_to"], FILTER_SANITIZE_EMAIL);
            list($to_addy_info) = imap_rfc822_parse_adrlist($email_to_clean, "");
            $dns_get_mx         = dns_get_record($to_addy_info->host, DNS_MX);
            $ip           = gethostbyname($dns_get_mx[0]["target"]);
            $message_sent = $this->sendCore($data_array, (string) $ip);
        } catch (InvalidArgumentException $e) {
            throw new InvalidArgumentException("OwpMessaging->sendEmailDirect(): Caught InvalidArgumentException: ".$e->getMessage());
        } catch (Exception $e) {
            throw new Exception("OwpMessaging->sendEmailDirect(): Caught Exception: ".$e->getMessage());
        }

        return $message_sent;

    }
sendEmailDirect

@method boolean sendEmailDirect($data_array) Send email directly to the recipient's 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