and these in my web.xml which is in my project folder
<resource-ref> <description> Resource reference to a factory for javax.mail.Session instances that may be used for sending electronic mail messages, preconfigured to connect to the appropriate SMTP server. </description> <res-ref-name> mail/Session </res-ref-name> <res-type> javax.mail.Session </res-type> <res-auth> Container </res-auth> </resource-ref>
But while i try to send a mail It is showing "could not connect to SMTP localhost port 25".
How can cahnge that.I have to connect to mail.host and to my proxy IP. can anyone help me.