This is very easy to do. For example in PHP:
php code
<?php
$to = "you@example.com";
$subj = "Spoofed mail from Jer";
$body = "Hello there";
$headers = "From: Jer <superjer@hotmail.com>";
$sendmail_params = "-fsuperjer@hotmail.com";
mail($to,$subj,$body,$headers,$sendmail_params);
?>
I use this all the time for sending email from automated systems on SuperJer.com, ClassifiedAds.com and other sites.
But if hotmail is using SPF, and your email server or client bothers to check SPF records, the email should get marked as spam or dropped completely.
SPF ensures that only authorized IP addresses can send mail on behalf of a particular domain, but only if your email system checks the records.