; STREAM SEND API
; Turn on the streamsend module to use with our contact application
-contactdb.streamsend.application = Off
+contactdb.streamsend.application = On
; Login id for the streamsend account
-contactdb.streamsend.login = Off
+contactdb.streamsend.login = "eMbsokkI99j3"
; Transaction key for the streamsend account
-contactdb.streamsend.key = Off
+contactdb.streamsend.key = "kcWYnjLGygCUDfI0"
; Streamsend account name
-contactdb.streamsend.account_name = Off
+contactdb.streamsend.account_name = "Big Fore"
; Streamsend audience number
-contactdb.streamsend.audience = Off
+contactdb.streamsend.audience = 1
; CONSTANT CONTACT API
; Constant Contact forms
if ($contact === false) {
$sql = "
INSERT INTO contact(pquote_create_date, fname, lname, address, city, state, zip, phone, alt_phone, email, mail_ok, arrival, departure, golfers, nongolfers,
- lodging, couples, singles, bathrooms, rooms, beds, twinok, sleepersofaok, comments, discover, partysize, pquote)
+ lodging, couples, singles, bathrooms, rooms, beds, twinok, sleepersofaok, comments, discover, partysize, pquote, contact_type)
VALUES (now(), :fname, :lname, :addy, :city, :state, :zip, :phone, :altphone, :email, true, :arrival, :departure, :golfers, :nongolfers, :lodging,
- :couples, :singles, :brooms, :rooms, :beds, :twinok, :sofaok, :comments, :discover, :partysize, true)";
+ :couples, :singles, :brooms, :rooms, :beds, :twinok, :sofaok, :comments, :discover, :partysize, true, ':5:')";
} else {
$sql = "
UPDATE contact
comments = :comments,
discover = :discover,
partysize = :partysize,
- pquote= true
+ pquote= true,
+ contact_type = ':5:'
WHERE email = :email";
}
$stmt->bindParam(':partysize', $partySize, PDO::PARAM_INT);
$stmt->execute();
+ // check if stream send is setup
+ if (defined('STREAMSEND_FORMS_API') && STREAMSEND_FORMS_API) {
+ // call the streamsends API to send contact to stream send
+ $streamSend = new Toolkit_LeadManager_Affiliates_StreamSend();
+ $streamSend->addContact($values);
+ }
+
if ($contact === false) {
$sql = "
SELECT id