Hotmail Configuration in Mail App

macOS and Mac Apps

I have been trying to add my Hotmail email to the mail app in Yosemite. It was working before. I can get the email folders, still each time I send email I get the message that the sender address has been rejected. Also I can not get the ne emails. I have been googling for that and trying all solutions but none worked. Anybody can detail the configuration of the Hotmail mail configuration?
Thanks all.