An image forming apparatus capable of creating and transmitting an e-mail to which is attached an image file created by the image forming apparatus, as well as a file received from an external device such as an information processing terminal, without reducing the capacity of the memory installed on the external device. The image forming apparatus including an image reader for creating an image file by reading an original document, an operation unit that includes one-touch keys that receive selection operations carried out by a user, a receiving unit for receiving an e-mail, a determination unit for determining whether or not the e-mail received by the receiving unit is an e-mail instructing one-touch key registration, an obtaining unit for, where it is determined by the determination unit that the received e-mail is an e-mail instructing one-touch key registration, obtaining from the e-mail mailing information including at least recipient information and one or more files attached to the e-mail, a storage unit for storing the mailing information and the files obtained by the obtaining unit, an association unit for associating the mailing information and the attached file information with a one-touch key, and a controller for, where reading of an original document by the image reader is specified by a selection operation carried out using a one-touch key, reading the mailing information and the attached file information associated with the one-touch key, creating an e-mail to which are attached one or more files corresponding to the attached file information and the image file created during original document reading, and sending the e-mail to a recipient corresponding to the recipient information included in the mailing information.