This applies if you're using Microsoft Outlook, but you should be able to use the codes in iMail as well:
1. Open Outlook Express.
2. On the Tools menu, click Accounts.
3. Click Add, and then click Mail.
4. Type your name, and then click Next.
5. Type your full Windows Live Hotmail e-mail address, and then click Next.
6. In the My incoming mail server is a box, click POP3.
7. In the Incoming mail (POP3, IMAP, or HTTP) server box, type pop3.live.com.
8. In the Outgoing mail (SMTP) server box, type smtp.live.com.
9. Type the account name and the password for your Windows Live Hotmail account. Clear the Remember password check box unless you're the only person with access to the computer. Make sure that the Log on using Secure Password Authentication (SPA) check box is not selected.
10. Click Next, and then click Finish.
11. In the Internet Accounts window, on the Mail tab, click the Windows Live Hotmail account that you added, and then click Properties.
12. On the Advanced tab, under Server Port Numbers, in the Incoming server (POP3) box, type 995. In the Outgoing server (SMTP) box, type 25. Under both Outgoing mail (SMTP) and Incoming mail (POP3), select the This server requires a secure connection (SSL) check boxes, and then click OK.
13. Click Close.