This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
In the above code I want to know - what are ' mailhost and host ' and what value I should put there in case I want to send the email to Hotmail account? - Somewhere I read hotmail doesn't uses smtp for sending emails. In that case the code I am writing above is wrong. What should I change? - Also If I should use some smtp server to send emails to hotmail account or I can just send emails without it.
I might be asking some silly questions but please answer me.