I am JSP that sends out an email. I had this code working in a stand alone java application but when i try it in a JSP page I get "Error: 530 error authentication required". I am not sure why as this was working for several months. Has anybody had similar issues?

Please note i have changed some of the parameters such as passwords, emails, and server names and have indicated where I have made changes.