Xiaomi has sold a record 1 million smartphones within first 18 days of the month, helped by online sales, prompting global CEO Lei Jun to recognise the India team's effort in an open letter.

Jun said Xiaomi will be able to capture largest market share in three to five years, on the back of sustained efforts and the proven model from China, which will resonate globally, starting with India.

“A big round of thanks to Manu and Hugo (Manu Kumar Jain, India Head for Xiaomi and Hugo Barra, VP of Xiaomi) for their outstanding leadership, to everyone at Mi India for their dedication, and to the business teams in China for their support," Jun said in the letter shared by Xiaomi in a statement Wednesday.

"I would also like to extend my heartfelt gratitude to all our partners in India, especially Flipkart, Amazon and Snapdeal, for their support," he added.

The e-commerce players held massive sales in the first week of the month, with most offering discounts on smartphones and other electronic goods for the festive season. A second round of the sales began Wednesday morning with Snapdeal, and will be followed by Flipkart and Amazon in the coming days.

Signaling increased investment in India and improved supply and after-sales services, Jun was confident of Xiaomi’s future in the country as he wrote, “…with the sustained efforts of our entire Xiaomi family, we will be able to capture the largest market share in India within 3-5 years.”

Jun, in the letter, labeled India as an “extremely important market in Xiaomi’s globalization strategy” and outlined several milestones of the company in India since August 2015 to September 2016, when the Redmi Note 3 sales, the letter claims, touched 2.3 million devices in just six months after its launch in online markets.

On October 4, Xiaomi had infact sold 0.5 million smartphones in three days of festive season sales on Amazon, Snapdeal and Flipkart, a massive leg up from the same quantity over 30 days, last year.

The company ran out of stock of Redmi 3S Prime and Redmi Note 3 devices on Flipkart in a day, it had said, and added that given the continuously rising demand leading up to Diwali, Xiaomi was working with manufacturer Foxconn to increase local production and ensure stock supplies to online and offline channels.