An electronic device comprising: a display; a wireless communication circuit; a processor; and a memory that stores an application program for managing a plurality of Internet-of-Things, IoT, devices, the application program including instructions executable by the processor to: establish wireless communication with the plurality of IoT devices by using the wireless communication circuit; display a user interface for managing the plurality of IoT devices through the display; receive a first user input selecting a group of IoT devices from among the plurality of IoT devices, and a second user input for a telephone number associated with another electronic device; transmit first information, including first user account data of the electronic device to a first external server using the wireless communication circuit; and transmit second information to a second external server, causing the second external server to send a short message service, SMS, message corresponding to the second information to the other electronic device using the telephone number, wherein the first information includes information indicating the selected group and the telephone number of the other electronic device, and wherein the second information includes the first user account data, the telephone number, a uniform resource locator, URL, for installing an IoT management app, and causes the other electronic device to communicatively connect with the first external server and control one or more IoT devices included in the selected group. a display; a wireless communication circuit; a processor; and a memory that stores an application program for managing a plurality of Internet-of-Things, IoT, devices, the application program including instructions executable by the processor to: establish wireless communication with the plurality of IoT devices by using the wireless communication circuit; display a user interface for managing the plurality of IoT devices through the display; receive a first user input selecting a group of IoT devices from among the plurality of IoT devices, and a second user input for a telephone number associated with another electronic device; transmit first information, including first user account data of the electronic device to a first external server using the wireless communication circuit; and transmit second information to a second external server, causing the second external server to send a short message service, SMS, message corresponding to the second information to the other electronic device using the telephone number, wherein the first information includes information indicating the selected group and the telephone number of the other electronic device, and wherein the second information includes the first user account data, the telephone number, a uniform resource locator, URL, for installing an IoT management app, and causes the other electronic device to communicatively connect with the first external server and control one or more IoT devices included in the selected group. establish wireless communication with the plurality of IoT devices by using the wireless communication circuit; display a user interface for managing the plurality of IoT devices through the display; receive a first user input selecting a group of IoT devices from among the plurality of IoT devices, and a second user input for a telephone number associated with another electronic device; transmit first information, including first user account data of the electronic device to a first external server using the wireless communication circuit; and transmit second information to a second external server, causing the second external server to send a short message service, SMS, message corresponding to the second information to the other electronic device using the telephone number, wherein the first information includes information indicating the selected group and the telephone number of the other electronic device, and wherein the second information includes the first user account data, the telephone number, a uniform resource locator, URL, for installing an IoT management app, and causes the other electronic device to communicatively connect with the first external server and control one or more IoT devices included in the selected group.