$credentials['domain']; } $result = $mailgun->sendMessage( "$domain", array( 'from' => $from_email, 'to' => $visitor_name . "<" . $post_data['email'] . ">", 'subject' => $subject, 'text' => $text_content, 'html' => $html_content, 'multipart' => true ) ); return $result; } /** * instantiate the API code required for this connection * * @return mixed */ protected function _apiInstance() { return new Thrive_Dash_Api_Mailgun( $this->param( 'key' ) ); } /** * get all Subscriber Lists from this API service * * @return array|bool for error */ protected function _getLists() { } /** * add a contact to a list * * @param mixed $list_identifier * @param array $arguments * * @return mixed */ public function addSubscriber( $list_identifier, $arguments ) { } }