A communication apparatus which is capable of enhancing security in
transmitting an electronic mail to a destination mail address, using a
transmission protocol, without degrading operability. A MFP 100 is
connected to an authentication server 102 and a mail server 120 via a
network, for transmitting an E-mail via the mail server according to
SMTP. A user name and a password are entered in a user name entry screen.
The MFP 100 requests the authentication server 102 to authenticate the
entered user name and password. When the user name and the password are
authenticated, the MFP 100 is operable to acquire an E-mail address 232,
a SMTP authentication user name 233, and a SMTP authentication password
234 according to SMTP associated with the authenticated user name and
password from the authentication server 102. The MFP 100 requests the
mail server 103 to authenticate the acquired SMTP authentication user
name 233 and SMTP authentication password 234 according to SMTP. When the
SMTP authentication user name 233 and the SMTP authentication password
234 are authenticated, the MFP is operable to transmit an E-mail to the
mail server 103 according to SMTP.