sending email using arduino uno wifi rev2

what i want is a way to access the email.
i tried using hotmail, yahoo and gmail ( i change the settings of email to have access from pop ) by using the commande
wifi.connect ( server , port );
server in this commande is " pop.mail.yahoo.com " as an example for pop and i tried using smtp check
( POP, IMAP, and SMTP settings - Microsoft Support )
but i couldn't access to the email.