Flight lands safely with help from mobile phone text messages