" ") { $sendEmailtoInviter = "Y"; $rand_key = md5(time()); $rand_key = rand(0, 999999999); $inviteDate = date(Y - m - d); $InsertStr = "INSERT INTO invitations (Message,Invite_Date,USER_ID, EMAIL, Invited, Type, Random_Key, Fname ) VALUES ( '$invitationMessage', '$inviteDate','" . $userID . "' , '" . $friendsEmail . "', 'Y', '" . $invitationType . "', '$rand_key', '" . $friendsName . "')"; $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 = $friendsEmail; include "doNotSend.php"; //end of email lookup - result will be $OkToSendEmail = Y or N $SelectStr2 = "SELECT * FROM users where Email = '" . $friendsEmail . "'"; $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 ($userGender == "m") { $proNoun = "his"; } if ($userGender == "f") { $proNoun = "her"; } $msgTitle = "Invitation from " . $userFirstName . " " . $userLastName; $sqlInsert = "INSERT INTO messages (From_ID, To_ID, Date_Sent, Time_Sent, Mark_As_Read, The_Text)"; $sqlInsert = $sqlInsert . " VALUES ('" . $userID . "','$friendID','$dateSent','$timeSent','N','011')"; $result3 = mysql_query($sqlInsert) or die(mysql_error()); $lastMsgId = mysql_insert_id(); $message = $userFirstName . " " . $userLastName . " 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 = '" . $userID . "'"; $result3 = mysql_query($SQL3) or die(mysql_error()); //***and send and email $to = $friendsEmail; $fromName = $userFirstName . " " . $userLastName; $from = "$fromName "; $fromNamePoss = $userFirstName . "'s"; include "emailTerms.php"; $subject = "From $fromName: Join my network!"; $greeting = ""; if ($friendsName > " ") { $friendsList = $friendsName; $subject = $friendsName . ", join my network!"; $greeting = "Hi " . $friendsName . ",

"; } //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: $userEmail \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 ($userGender == "f") { $theGender1 = "she"; $theGender1C = "She"; $theGender2 = "her"; } if ($userGender == "m") { $theGender1 = "he"; $theGender1C = "He"; $theGender2 = "his"; } $theLink = "http://yadahome.com/signUpProcess.php?rndid=" . $rand_key . "&invid=" . $lastInvId; $to = $friendsEmail; $fromName = $userFirstName . " " . $userLastName; $fromEmail = $userFirstName . "" . $userLastName; $from = "$fromEmail@YadaHome.com"; $fromNamePoss = $userFirstName . "'s"; include "emailTerms.php"; //$subject = "Take A Look At My Profile On A Great New Website I Discovered!"; $subject = "$friendsName, I Created An Online/Mobile Family Organizer, Please Join."; $greeting = "Hi,

"; if ($friendsName > " ") { $greeting = $friendsName . ",

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



"; } 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.

BRAND NEW: Don't Have An iPhone? No Problem!
Download Our FREE Mobile Web App Designed For:
Android, BlackBerry And Windows Mobile!
Mobile Web App Address: www.yadahome.com/m



Thanks!
$userFirstName


Organizer+: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

                          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 <$from>\r\n"; $headers .= "Reply-To: $userEmail \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 ($friendsName > " ") { 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 .= $friendsName; //end of build the friends list } } } } //******************************************************************* //* end of send out the email //******************************************************************* //******************************************************************* // remind member to follow up with friends //******************************************************************* if ($sendEmailtoInviter == "Y") { //$friendsList $to = $userEmail; $from = "Invitations@YadaHome.com"; $toName = $userFirstName; $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.


BRAND NEW: If $friendsList Doesn't Have An iPhone, No Problem!
Tell Them To Download Our FREE Mobile Web App Designed For:
Android, BlackBerry And Windows Mobile!
Mobile Web App Address: www.yadahome.com/m


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); } //**************** //* end of reminder //******************************************************************* } //} ?>