How to set up email account for Yahoo or hotmail on Mac OSx

I tried many times to set up account for Yahoo or Hot mail by Mail on Mac and got failure. I wanna send email straight from Mail. Who can tell me how should I do?

user address: prettylydia@yahoo.com.cn
server: mail.yahoo.com.cn
type: POP ( not sure)
ID:prettylydia
password:xxxxxxx
SMTP: smtp.yahoo.com.cn