After a lot of googling, i got code to send mail programatically in java but it works only with gmail although i substituted account name, password, smtp host and port after the discusion with my service engineer but vain. i got the following error
javax.mail.MessagingException: Could not connect to SMTP host:172.17.240.7, port: 25;
and my need is some other way/code which does not use smtp host/port no
Please let me know your kind reply!