A communication device includes a communication unit that communicates via
a network and a control unit that controls to transmit an electronic mail
message using the communication unit to a prescribed mail service
normally, and using the communication unit to transmit the electronic
mail message directly to a mail service of a receiver by using an
Internet Protocol (IP) address of the mail server of the receiver
obtained based on a receiver address of the electronic mail message when
the prescribed mail server cannot be used.