query($add_attendee); $r = $conn->query($get_registered); while($row = $r->fetch_assoc()) { $title = $row['title']; $address = $row['address']; $city = $row['city']; $state = $row['state']; $zip = $row['zip']; $convertDate = DateTime::createFromFormat('Y-m-d', $row['date']); $date = $convertDate->format('F d, Y'); $convertTime = DateTime::createFromFormat('H:i:s', $row['time']); $time = $convertTime->format('g:i a'); $timezone = $row['timezone']; $registered = $row['registered']; $add_one = $registered+1; $update_registered = "UPDATE events SET registered = '$add_one' WHERE event_id = '$r_event_id'"; $conn->query($update_registered); } //define email message $body = " Humana
Thank you for registering!
\"IGNITE

Thank You, $first_name!

You have been registered to attend the 2019 AEP Academy Event, $title, in $city, $state!

Event Details

What:
$title

When:
$date
$time

Where:
$address
$city, $state $zip

\"Humana\"

Visit Humana.com for more information.

Please do not reply to this email.

Confidential. For Humana agent/agency use only. This material, including any subpart(s), is not to be used as marketing and is not to be provided to a prospect, an applicant, member, group or the general public.

Humana strives to protect your privacy and confidentiality. To find out more about how Humana protects your confidentiality, please see our complete Internet Privacy Statement and our Privacy Practices.

For more information about Humana coverage or the company providing these benefits, please visit Humana.com.

Humana
500 West Main Street
Louisville, Kentucky 40202
Legal | Privacy Practices | Internet Privacy Statement.
Copyright © 2018 Humana Inc.

"; // instantiate php mailer include("php/class.phpmailer.php"); include("php/class.smtp.php"); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true;// enable SMTP authentication $mail->Port = 587; // set the SMTP port // HEINRICH TEST INFO $mail->Host = "zimbra.heinrich.com"; // sets GMAIL as the SMTP server $mail->Username = "tester@heinrich.com"; // username $mail->Password = "testme"; // password $mail->From = "AEP-enrollment-form@heinrich.com"; $mail->FromName = "Humana AEP Academy"; $mail->Subject = "AEP Academy Event Registration Confirmation"; //$mail->AltBody = "This is the body when user views in plain text format"; //Text Body $mail->WordWrap = 50; // set word wrap $mail->MsgHTML($body); $mail->AddAddress("$email_address"); // $mail->AddBcc("jeremy@jeremykron.com"); $mail->AddBcc("kenlynde@heinrich.com","Ken Lynde"); $mail->IsHTML(true); // send as HTML $mail->Send(); // confirmation $alert .= "Thank you for registering! A confirmation email has been sent to the address provided."; // SMS verification /* if ((isset($phone)) && (isset($carrier)) && ($sms_optin == '1')){ // gateway switch switch($carrier){ case "ATT": $gateway = $phone."@mms.att.net"; break; case "Boost": $gateway = $phone."@myboostmobile.com"; break; case "Cricket": $gateway = $phone."@sms.mycricket.com"; break; case "Nextel": $gateway = $phone."@messaging.nextel.com"; break; case "Sprint": $gateway = $phone."@pm.sprint.com"; break; case "TMobile": $gateway = $phone."@tmomail.net"; break; case "Verizon": $gateway = $phone."@vtext.com"; break; default: //do nothing } #echo $gateway; // instantiate php mailer $sms = new PHPMailer(); $sms ->IsSMTP(); $sms ->SMTPAuth = true;// enable SMTP authentication $mail->Host = "zimbra.heinrich.com"; // sets GMAIL as the SMTP server $mail->Username = "tester@heinrich.com"; // username $mail->Password = "testme"; // password $sms ->Port = 587; // set the SMTP port $sms ->Encoding = '7bit'; $sms ->Subject = "AEP Enrollment Event Confirmation"; $sms ->Body = "Thank You $first_name! You have been registered to attend 2019 AEP Enrollment Event"; $sms ->AddAddress("$gateway"); $sms->Send(); $alert .= "A text confirmation has been sent."; } */ } ?> IGNITE with Humana | The 2019 AEP Academy
Dismiss ⓧ
IGNITE with Humana | The 2019 AEP Academy

The 2019 Annual Enrollment Period is days away.

Whether it’s your first AEP or you have years of experience, it’s always a good idea to start the season off on the right foot.

Register Now! Select your state to find a 2019 AEP Academy event near you: