Method for processing data and an electronic device thereof

This disclosure ensure that the at least one message receiving method for outputting the attached data received with the message with the attached data, and displays the notification message including a notification information in the accompanying data, if included in the accompanying data, , the appended data if the notification information is the selection can be directly output.