MailServerConnect
MailServerConnect[] connects to your default incoming mail server.
MailServerConnect["server"] connects to the specified incoming mail server "server".
MailServerConnect["server",userid] connects using the specified user ID userid.
MailServerConnect["server",userid,password] connects using userid and password.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.