"Y") and ($myrow2['iphone'] == "Y")){$fromLite = 'N';} $userFirstName = $myrow2['First_Name']; } //end of see if inviter is using the lite app if($_REQUEST['theAction'] == "addIt"){ //find out how many friends were entered $numberOfFriends = 0; $count = count( $_REQUEST["FriendsEmail"] ); for ($i=0; $i<$count; $i++) { if($_REQUEST["FriendsEmail"][$i] > " "){ $numberOfFriends++; } } // //insert friends_email $count = 0; $count = count( $_REQUEST["FriendsEmail"] ); $numberfilled = 0; $friendsList = ""; for ($i=0; $i<$count; $i++) { //insert into table if($_REQUEST["FriendsEmail"][$i] > " "){ $sendEmailtoInviter = "Y"; $numberfilled++; $rand_key = md5(time()); $rand_key= rand(0,999999999); $invitDate = date(Y-m-d) ; $_POST[msg] = ereg_replace("'", "´",$_POST[msg]); $InsertStr = "INSERT INTO invitations (Message,Invite_Date,USER_ID, EMAIL, Invited, Type, Random_Key, Fname ) VALUES ( '$_POST[msg]', '$invitDate','" . $_SESSION['sessionUserID'] . "' , '" . $_REQUEST["FriendsEmail"][$i] . "', 'Y', '" . $_REQUEST["Type"][$i] . "', '$rand_key', '" . $_REQUEST["FriendsName"][$i] . "')"; $result = mysql_query($InsertStr) or die(mysql_error()); $lastInvId=mysql_insert_id() ; //************************************************************************************************************************ //* see if user is already a yada member - if so then dont sent the registration email - just put a message in their box //************************************************************************************************************************ //see if user is on the dont send email list $lookupEmail = $_REQUEST["FriendsEmail"][$i]; include "doNotSend.php"; //end of email lookup - result will be $OkToSendEmail = Y or N $SelectStr2 = "SELECT * FROM users where Email = '" . $_REQUEST["FriendsEmail"][$i] . "'"; $result2 = mysql_query($SelectStr2) or die(mysql_error()); if($myrow2=MySQL_fetch_array($result2)){ $sqlM = "update invitations set is_Member = 'Y' where ID = '$lastInvId' "; $resultM = mysql_query($sqlM) or die(mysql_error()); $dateSent=date("Y-m-d") ; $timeSent = date("H:i") ; $friendID = $myrow2["ID"]; $invID = $lastInvId; $proNoun = "their"; if ( $_SESSION["sessionGender"] == "m" ){ $proNoun = "his"; } if ( $_SESSION["sessionGender"] == "f" ){ $proNoun = "her"; } $msgTitle = "Invitation from ".$_SESSION["sessionFname"] . " " . $_SESSION["sessionLname"] ; $sqlInsert = "INSERT INTO messages (From_ID, To_ID, Date_Sent, Time_Sent, Mark_As_Read, The_Text)" ; $sqlInsert = $sqlInsert . " VALUES ('" . $_SESSION["sessionUserID"] . "','$friendID','$dateSent','$timeSent','N','011')" ; $result3 = mysql_query($sqlInsert) or die(mysql_error()); $lastMsgId=mysql_insert_id() ; $message = $_SESSION["sessionFname"] . " " . $_SESSION["sessionLname"] . " has invited you to join $proNoun network.
Click here to accept or reject this invitation."; $SQL3 = "UPDATE messages SET msg_title = '$msgTitle' ,Reply_ID='$lastMsgId', The_Text = '$message' WHERE To_ID ='$friendID' and ID = '$lastMsgId' and The_Text='011' and From_ID = '" . $_SESSION["sessionUserID"]. "'"; $result3 = mysql_query($SQL3) or die(mysql_error()); //***and send and email $to = $_REQUEST["FriendsEmail"][$i]; $fromName = $_SESSION["sessionFname"] . " " . $_SESSION["sessionLname"]; $from = "$fromName "; $fromNamePoss = $_SESSION["sessionFname"] . "'s"; include "emailTerms.php"; $subject = "From $fromName: Join my network!"; $greeting = ""; if ( $_REQUEST["FriendsName"][$i] > " "){ $friendsList = $_REQUEST["FriendsName"][$i]; $subject = $_REQUEST["FriendsName"][$i] . ", join my network!"; $greeting = "Hi " . $_REQUEST["FriendsName"][$i] . ",

"; } //begin email message $message = "$subject

" . $greeting . "I just invited you to join my YadaHome network!

Just sign into your fridge and click on your messages where you will be able to accept the invitation! Here's the link to sign in: YadaHome.com

$fromName




-----------------------------------------------------
$emailTerms




"; //end of message $headers = "From: $from\r\n"; $headers .="Reply-To: $_SESSION[sessionEmail] \r\n"; $headers .= "Content-type: text/html\r\n"; //options to send to cc+bcc //$headers .= "Cc: [email]maa@p-i-s.cXom[/email]"; //$headers .= "Bcc: [email]email@maaking.cXom[/email]"; // now lets send the email. if( $OkToSendEmail == "Y"){ mail($to, $subject, $message, $headers); } //********* } else{ //*********************DID NOT FIND THE FRIEND IN THE USERS TABLE - NOT YET A MEMBER $theGender1 = "they"; $theGender2 = "his or her"; if($_SESSION["sessionGender"] == "f"){ $theGender1 = "she"; $theGender1C = "She"; $theGender2 = "her";} if($_SESSION["sessionGender"] == "m"){ $theGender1 = "he"; $theGender1C = "He"; $theGender2 = "his";} $friendsName = $_REQUEST["FriendsName"][$i]; $theLink = "http://yadahome.com/signUpProcess.php?rndid=" . $rand_key . "&invid=" . $lastInvId ; $to = $_REQUEST["FriendsEmail"][$i]; $fromName = $_SESSION["sessionFname"] . " " . $_SESSION["sessionLname"]; $fromEmail = $_SESSION["sessionFname"] . "" . $_SESSION["sessionLname"]; $from = "$fromEmail@YadaHome.com"; $fromNamePoss = $_SESSION["sessionFname"] . "'s"; include "emailTerms.php"; $subject = "$friendsName, I Created An Online/Mobile Family Organizer, Please Join."; $greeting = "Hi,

"; if ( $_REQUEST["FriendsName"][$i] > " "){ $greeting = "Hi " . $_REQUEST["FriendsName"][$i] . ",

"; $subject = "$friendsName, I Created An Online/Mobile Family Organizer, Please Join."; } if($_POST[msg] > " "){ $notes = "
". $_POST[msg] ."



"; } else { $notes = " "; } $message = "$subject


"; if($fromLite=="Y"){ $message .= " "; }else{ $message .= " "; } $message .= "

$friendsName,

I enrolled in a new network that will help us coordinate and stay organized. Please join, so we can start sharing our calendars, to do list items, and grocery lists online, and on our mobile phones.

Here's the link to join our family's network:
http://yadahome.com/signUpProcess.php?rndid=$rand_key&invid=$lastInvId

Please join now, it will only take a few minutes.

Thanks!
$userFirstName


OrganizerPro:ToDo+Calendar+Lists+WebsiteSync&Access+Sharing

Manage Your Calendars And Lists On-The-Go
  • Shared Calendars
  • Shared To Do Lists
  • Shared Grocery Lists
  • Real-Time Sync With Family Or Roommates
  • Offline/Online Access
  • Backup Data Online

In-App Purchase Options
 
  • Email Calendars And Lists
  • Google Calendar™ Import

 

  • Turn Off Banner Ads
  • Email Alerts

                          view in iTunes App Store

5-in-1 iPhone App
Family Organizer: Shared Calendar+To Do+Grocery List+Google Cal+Family Chat

Manage Your Calendars And Lists On-The-Go
  • Shared Calendars
  • Shared To Do Lists
  • Shared Grocery Lists
  • Real-Time Sync
  • Shared Family Chat
  • Google Calendar™ Import
  • Offline/Online Access
  • Email Alerts

                          view in iTunes App Store

BlackBerry / Android / Windows Mobile Applications

Manage Your Calendars And Lists On Any Smart Phone
  • Shared Calendars
  • Shared To Do Lists
  • Shared Grocery Lists
  • Real-Time Sync
  • Shared Family Chat
  • Google Calendar™ Import
  • Offline/Online Access
  • Email Alerts



Internet / Online Web Access
www.YadaHome.com

Manage Your Calendar And Lists From Any Computer
  • Shared Calendars
  • Shared To Do Lists
  • Shared Grocery Lists
  • Shared Recipes
  • Auto Coupon Finder
  • Shared Family Chat
  • Google Calendar™ Import
  • Shared Photos
  • Shared Journals
  • Email Alerts

Networking and Sharing Instructions

How Do I Invite Family Members To My Network And Start Sharing?

       Online:

  • After logging in to YadaHome.com, click the 'Add Friends and Family' button at the top right
  • Add Your Family's Email Addresses And Press 'Send'
  • An Email Will Be Sent Inviting Them To Create An Account And Join Your Network
  • Once They Have Joined Your Network, You Can Start Sharing With Them

       On Your App:

  • Select The "Add Family/Friends" Tab On Your App Home Screen
  • Add Your Family's Email Addresses And Press 'Send'
  • An Email Will Be Sent Inviting Them To Create An Account And Join Your Network
  • Once They Have Joined Your Network, You Can Start Sharing With Them
 

For More Tips On Getting The Most Out Of YadaHome.com, Please Visit The FAQ Section Of The Website at www.yadahome.com/faqs.php, By Visiting The YadaHome Manual On Your My Fridge® Page Or By Writing Us At admin@yadahome.com !

 




*Paid premium membership required to use premium YadaHome app
©2009 Research In Motion Limited. All rights reserved. BlackBerry®, RIM®, Research In Motion®, SureType®, SurePress™ and related trademarks, names and logos are the property of Research In Motion Limited and are registered and/or used in the U.S. and countries around the world.
$emailTerms
"; //end of message $headers = "From: $from \r\n"; $headers .="Reply-To: $_SESSION[sessionEmail] \r\n"; $headers .= "Content-type: text/html\r\n"; //options to send to cc+bcc //$headers .= "Cc: [email]maa@p-i-s.cXom[/email]"; //$headers .= "Bcc: [email]email@maaking.cXom[/email]"; // now lets send the email. if( $OkToSendEmail == "Y"){ mail($to, $subject, $message, $headers); } if ( $_REQUEST["FriendsName"][$i] > " "){ if ($friendsList > " "){ if($numberOfFriends == 2){ $friendsList .= " and "; }; if( ($numberOfFriends == 3) && ($i == 1) ){ $friendsList .= ", "; }; if( ($numberOfFriends == 3) && ($i == 2) ){ $friendsList .= ", and "; }; if( ($numberOfFriends == 4) && ($i == 1) ){ $friendsList .= ", "; }; if( ($numberOfFriends == 4) && ($i == 2) ){ $friendsList .= ", "; }; if( ($numberOfFriends == 4) && ($i == 3) ){ $friendsList .= ", and "; }; if( ($numberOfFriends == 5) && ($i == 1) ){ $friendsList .= ", "; }; if( ($numberOfFriends == 5) && ($i == 2) ){ $friendsList .= ", "; }; if( ($numberOfFriends == 5) && ($i == 3) ){ $friendsList .= ", "; }; if( ($numberOfFriends == 5) && ($i == 4) ){ $friendsList .= ", and "; }; if( ($numberOfFriends == 6) && ($i == 1) ){ $friendsList .= ", "; }; if( ($numberOfFriends == 6) && ($i == 2) ){ $friendsList .= ", "; }; if( ($numberOfFriends == 6) && ($i == 3) ){ $friendsList .= ", "; }; if( ($numberOfFriends == 6) && ($i == 4) ){ $friendsList .= ", "; }; if( ($numberOfFriends == 6) && ($i == 5) ){ $friendsList .= ", "; }; if( ($numberOfFriends == 6) && ($i == 6) ){ $friendsList .= ", and "; }; } $friendsList .= $_REQUEST["FriendsName"][$i]; //end of build the friends list } } } } //******************************************************************* //* end of send out the email //******************************************************************* //******************************************************************* // remind member to follow up with friends //******************************************************************* if ($sendEmailtoInviter == "Y"){ //$friendsList $to = $_SESSION[sessionEmail]; $from = "Invitations@YadaHome.com"; $toName = $_SESSION["sessionFname"]; $subject = "Remind $friendsList To Accept Your Invitation Today"; $headers = "From: $from \r\n"; $headers .="Reply-To: $from \r\n"; $headers .= "Content-type: text/html\r\n"; //if($friendsList > " "){ $message = "$subject


$userFirstName,

We’ve sent an invitation email on your behalf to $friendsList.  

Please remind $friendsList to join today so you can start sharing your calendar, to do lists, grocery lists, and more.


Best Regards,
Customer Care

--
YadaHome.com


 




*Paid premium membership required to use premium YadaHome app
©2009 Research In Motion Limited. All rights reserved. BlackBerry®, RIM®, Research In Motion®, SureType®, SurePress™ and related trademarks, names and logos are the property of Research In Motion Limited and are registered and/or used in the U.S. and countries around the world.
$emailTerms
"; // } mail($to, $subject, $message, $headers); $sentEmails = "Y"; } //**************** //* end of reminder //******************************************************************* $msg = "Your invitations have been sent. When an invitation is accepted, you will receive a notice in your YadaHome inbox which is accesible from My Fridge."; if($_REQUEST['submittedFrom'] == "viPopUp"){ header("Location: inviter/import.php?sent=y"); exit(); } if($_REQUEST['fromWebApp'] == "yes"){ if($_REQUEST['webAppVersion']=="mbb"){ header("Location: mbb/addFamily.php?added=y"); exit(); } header("Location: m/addFamily.php?added=y"); exit(); } } if($_REQUEST['showmsg'] == 'y'){ $msg = "Your invitations have been sent. When an invitation is accepted, you will receive a notice in your YadaHome inbox which is accesible from My Fridge."; $sentEmails = "Y"; } ?> Yada Home | Invite Friends
yada home
my fridge


 Your invitations have been sent!
  Family Member's First Name Their Email Address
 
 
 
 
 
 
 

 
 
free profile