A method for archiving image data, comprising: specifying archive setting information based on a communication type when transmitting or receiving image data; creating an e-mail including image data transmitted or received by facsimile or via an Internet; and archiving the created e-mail after transmitting to a predetermined e-mail address for archiving based on the specified archive setting infor