In my application I want to send email programmatically with out user intervention. I have googled alot and came up with some helpful links given below. But none of them are working for me.
For all of given links:
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(user, password);
These lines are not working with error "return type is incompatible" and "constructor is undefined". Can someone help me to fix the. I have added the required Jar files as well.