Well I agree with you.
But I want to do this only for
test purposes.
Here is the code through which I can sent mail through gmail smtp,
if someone could tell me, anything about localhost smpt server that would be helpful.
I don't know which port or smtp host James java server use.