include_once("_global.php");
$__gTabIndex = -1;
if ($_POST['action'] == 'submit' && $_POST['email'] == 'true')
{
$errno = 0;
$comment_emails_to = array(
'neosol@gmail.com'
);
$_POST['c_name'] = trim(strip_tags($_POST['c_firstname']) . ' ' . strip_tags($_POST['c_lastname']));
$_POST['c_email'] = trim(strip_tags($_POST['c_email']));
$_POST['c_comments'] = trim(strip_tags($_POST['c_comments']));
if (!$_POST['c_name'] || !$_POST['c_email'] || !$_POST['c_comments']) {
$errno = 1;
}
if (!$errno) {
$comment_detail = '';
$comment_detail .= '
' . "\n";
$comment_detail .= ' ' . "\n";
$comment_detail .= ' | Customer Comment | ' . "\n";
$comment_detail .= '
' . "\n";
$comment_detail .= ' ' . "\n";
$comment_detail .= ' | Customer Name : | ' . "\n";
$comment_detail .= ' ' . $_POST['c_name'] . ' | ' . "\n";
$comment_detail .= '
' . "\n";
$comment_detail .= ' ' . "\n";
$comment_detail .= ' | Organization : | ' . "\n";
$comment_detail .= ' ' . $_POST['c_organization'] . ' | ' . "\n";
$comment_detail .= '
' . "\n";
$comment_detail .= ' ' . "\n";
$comment_detail .= ' | Customer E-mail : | ' . "\n";
$comment_detail .= ' ' . $_POST['c_email'] . ' | ' . "\n";
$comment_detail .= '
' . "\n";
$comment_detail .= ' ' . "\n";
$comment_detail .= ' | City : | ' . "\n";
$comment_detail .= ' ' . $_POST['c_city'] . ' | ' . "\n";
$comment_detail .= '
' . "\n";
$comment_detail .= ' ' . "\n";
$comment_detail .= ' | State : | ' . "\n";
$comment_detail .= ' ' . $_POST['c_state'] . ' | ' . "\n";
$comment_detail .= '
' . "\n";
$comment_detail .= ' ' . "\n";
$comment_detail .= ' | Country : | ' . "\n";
$comment_detail .= ' ' . $_POST['c_country'] . ' | ' . "\n";
$comment_detail .= '
' . "\n";
$comment_detail .= ' ' . "\n";
$comment_detail .= ' | Comments : | ' . "\n";
$comment_detail .= ' ' . $_POST['c_comments'] . ' | ' . "\n";
$comment_detail .= '
' . "\n";
$comment_detail .= ' ' . "\n";
$comment_detail .= ' | Find our web-site: | ' . "\n";
$comment_detail .= ' ' . $_POST['c_search_engines'] . ' | ' . "\n";
$comment_detail .= '
' . "\n";
$comment_detail .= ' ' . "\n";
$comment_detail .= ' | Email Newsletter : | ' . "\n";
$comment_detail .= ' ' . $_POST['c_email_notice'] . ' | ' . "\n";
$comment_detail .= '
' . "\n";
$comment_detail .= ' ' . "\n";
$comment_detail .= ' | My organization does: | ' . "\n";
$comment_detail .= ' ' . $_POST['o_my_organization_does'] . ' | ' . "\n";
$comment_detail .= '
' . "\n";
$comment_detail .= ' ' . "\n";
$comment_detail .= ' | My job responsibilities are: | ' . "\n";
$comment_detail .= ' ' . $_POST['o_job_dutys'] . ' | ' . "\n";
$comment_detail .= '
' . "\n";
$comment_detail .= ' ' . "\n";
$comment_detail .= ' | Information Request: | ' . "\n";
$comment_detail .= ' ' . $_POST['o_request'] . ' | ' . "\n";
$comment_detail .= '
' . "\n";
$comment_detail .= ' ' . "\n";
$comment_detail .= ' | Street Address: | ' . "\n";
$comment_detail .= ' ' . $_POST['o_street'] . ' | ' . "\n";
$comment_detail .= '
' . "\n";
$comment_detail .= ' ' . "\n";
$comment_detail .= ' | Phone: | ' . "\n";
$comment_detail .= ' ' . $_POST['o_tel'] . ' | ' . "\n";
$comment_detail .= '
' . "\n";
$comment_detail .= ' ' . "\n";
$comment_detail .= ' | Fax: | ' . "\n";
$comment_detail .= ' ' . $_POST['o_fax'] . ' | ' . "\n";
$comment_detail .= '
' . "\n";
$comment_detail .= ' ' . "\n";
$comment_detail .= ' | Homepage: | ' . "\n";
$comment_detail .= ' ' . $_POST['o_url'] . ' | ' . "\n";
$comment_detail .= '
' . "\n";
$comment_detail .= ' |
' . "\n";
$comment_detail .= '
' . "\n";
//
// HTML mail
//
$message = $comment_detail;
/*The people to receive the emailed report */
$Recipients = $comment_emails_to;
include_once('includes/mimemail.class.php');
$newMail = new htmlMimeMail();
//
// Arguments for setSMTPParams()
//
// $this->smtp_params['host'] = 'localhost';
// $this->smtp_params['port'] = 25;
// $this->smtp_params['helo'] = $helo;
// $this->smtp_params['auth'] = false;
// $this->smtp_params['user'] = '';
// $this->smtp_params['pass'] = '';
// $newMail->setSMTPParams('smtp.sbcglobal.yahoo.com', '25', $_SREVER['SREVER_NAME'], true, '', '');
$newMail->setSMTPParams('mail.houstonfearless.com', '25', $_SREVER['SREVER_NAME'], false, '', '');
$newMail->setHtmlEncoding();
$newMail->setHtmlCharset();
$newMail->setReturnPath("info@hfpurewater.com");
$newMail->setFrom("HF Mailer