turn out to be that to use authentication in java mail you have to explicitly give the user and password to the Java Mail
here's what i do
I edit MailEngine.java and add these lines of code in send method
JavaMailSenderImpl mailSendImpl = (JavaMailSenderImpl) this.mailSender;
mailSendImpl.setPassword(pwd);
mailSendImpl.setUsername(user);
mailSendImpl.setProtocol(prtcl);
mailSendImpl.setJavaMailProperties(properties);
mailSendImpl.send(msg);
you can get the parameter from the properties given by the session in mailSession bean therefor i also edit the applicationContext-service.xml so that the mailSession bean is injected to the MailEngine so that we can access it
hopes it help with others dealing with the same problem as mine
thanks :)
Hi.
I'm not an expert in smtp+java at all, but looks like you have to have
an SMTP AUTH. Please look here:
http://forums.serverbeach.com/archive/index.php/t-3339.html
(just one of links Google found).