\n"; $header .= "X-Sender: \n"; $header .= "X-Mailer: PHP\n"; //mailer $header .= "X-Priority: 3\n"; $header .= "Return-Path: \n"; @mail($receipient, $subject, $message, $header); } function secondsToTime($seconds){ // extract hours $hours = floor($seconds / (60 * 60)); // extract minutes $divisor_for_minutes = $seconds % (60 * 60); $minutes = floor($divisor_for_minutes / 60); // extract the remaining seconds $divisor_for_seconds = $divisor_for_minutes % 60; $seconds = ceil($divisor_for_seconds); // return the final array $obj = array( "h" => (int) $hours, "m" => (int) $minutes, "s" => (int) $seconds, ); return $obj; } function sendStravaConfirmationEmail($subject, $name, $receipient = 'marvin.baga@oneshift.com', $user_data) { $header = "MIME-Version: 1.0\n"; $header .= "Content-type: text/html; charset=\"iso-8859-1\"\n"; $header .= "From: togo810@togoparts.com \n"; $header .= "X-Sender: \n"; $header .= "X-Mailer: PHP\n"; $header .= "X-Priority: 3\n"; $header .= "Return-Path: \n"; $message = '
 
Togoparts Play Storegoogle plustwitterTogoparts Apple Storefacebook
 
 
 
Dear '. $name .',

You have successfully connnected to Strava and the Togo810 Challenge Club!

Your Details
Username '.$user_data["username"].'
Name '.$user_data["first_name"].' '.$user_data["last_name"].'
Strava ID '.$user_data["strava_id"].'
Date of Birth '.$user_data["dob"].'
Mobile '.$user_data["mobile"].'
Address '.$user_data["address"].', '.$user_data["city"].', '.$user_data["country"].' '.$user_data["postal_code"].'
Jersey Size '.strtoupper($user_data["jersey_size"]).'
AXA '.($user_data["axa"] ? "Yes" : "No").'

You can now clock your rides using the Strava app on iOS or Android. There is no need to do anything else. Once you hit 810km before 27th Mar 2016 you will automatically qualify for the Finisher Jersey.

The Top 50 cyclists who clock the MOST distance within those dates will get a special "Top50" Togo810 cycling cap!

All the best for completing 810km and more! Join the TOGO810 Strava group, then you may check your progress and how you stack up with other participants in the Togo810 Challenge Leaderboard.

For more information on Togo810 check out our FAQ Section and the Rules and Regulations Page. Also check out the Togo810 Forum Thread and other forums to connect with fellow riders to get started!


GET SOCIAL WITH #TOGO810

Document your journey with the hashtag and see what your friends are doing!


STAY IN TOUCH WITH TOGO810

Get notified with the latest TOGO810 news and progress updates with the Togoparts App.



 
 
'; @mail($receipient, $subject, $message, $header); } function sendReminderEmailStrava($uid) { if(!is_numeric($uid) || $uid < 1) { exit; } $challengerUser = ChallengeUser::byId($uid); $header = "MIME-Version: 1.0\n"; $header .= "Content-type: text/html; charset=\"iso-8859-1\"\n"; $header .= "Bcc: marvin.baga@oneshift.com\r\n"; $header .= "From: togo810@togoparts.com \n"; $header .= "X-Sender: \n"; $header .= "X-Mailer: PHP\n"; //mailer $header .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal $header .= "Return-Path: \n"; $message = '
 
Togoparts Play Storegoogle plustwitterTogoparts Apple Storefacebook
 
 
 
Dear '.$challengerUser->first_name.',

Your registration for TOGO810 is successful! Just a couple of things to get you setup for the Challenge if you have not done so already.
  1. Login / Signup to Strava account on our page, so you can keep track and monitor your progress.

  2. '; //disabled as strava page is currently not accessible $message .= '
  3. Visit TOGO810 Strava Club Page to request to join.

  4. '; $message .= '
  5. Download Stava app for you iOS or Android phone.

If you have trouble taking the steps above, please contact us at togo810@togoparts.com or give us a call at +65 6533 3150, Mondays - Fridays, 10:00-6:00pm.
 
 
'; //echo($message); mail($challengerUser->email, 'TOGO810 - Registration Successful! Next Steps', $message, $header); // mail('charlie.tan@togoparts.com', 'TOGO810 - Registration Successful! Next Steps', $message, $header); } function sendStravaConfirmationEmailTest($subject, $name, $receipient = 'marvin.baga@oneshift.com', $user_data) { $header = "MIME-Version: 1.0\n"; $header .= "Content-type: text/html; charset=\"iso-8859-1\"\n"; $header .= "From: marvin.baga@oneshift.com \n"; $header .= "X-Sender: \n"; $header .= "X-Mailer: PHP\n"; $header .= "X-Priority: 3\n"; $header .= "Return-Path: \n"; $message = '
 
Togoparts Play Storegoogle plustwitterTogoparts Apple Storefacebook
 
 
 
Dear '. $name .',

You have successfully connnected to Strava and the Togo810 Challenge Club!

Your Details
Username '.$user_data["username"].'
Name '.$user_data["first_name"].' '.$user_data["last_name"].'
Strava ID '.$user_data["strava_id"].'
Date of Birth '.$user_data["dob"].'
Mobile '.$user_data["mobile"].'
Address '.$user_data["address"].', '.$user_data["city"].', '.$user_data["country"].' '.$user_data["postal_code"].'
Jersey Size '.strtoupper($user_data["jersey_size"]).'
AXA '.($user_data["axa"] ? "Yes" : "No").'

You can now clock your rides using the Strava app on iOS or Android. Togoparts will automatically collect your ride distance thru Strava from the 29th Jan 2016 00:00hrs till the 27th Mar 2016 23:59hrs (Sunday). There is no need to do anything else. Once you hit 810km before 27th Mar 2016 you will automatically qualify for the Finisher Jersey.

The Top 50 cyclists who clock the MOST distance within those dates will get a special "Top50" Togo810 cycling cap!

All the best for completing 810km and more! Join the TOGO810 Strava group, then you may check your progress and how you stack up with other participants in the Togo810 Challenge Leaderboard.

For more information on Togo810 check out our FAQ Section and the Rules and Regulations Page. Also check out the Togo810 Forum Thread and other forums to connect with fellow riders to get started!


GET SOCIAL WITH #TOGO810

Document your journey with the hashtag and see what your friends are doing!


STAY IN TOUCH WITH TOGO810

Get notified with the latest TOGO810 news and progress updates with the Togoparts App.



 
 
'; @mail($receipient, $subject, $message, $header); } ?>

# on Instagram

Hashtag #TOGO810 to share on Facebook, Instagram or Twitter to document your rides! See more