I have a flow as start-->email-->end node.
When i am running the below code in a standalone java file it is working and i am getting mail in mailbox.
EmailWorkItemHandler emailHandler=new EmailWorkItemHandler(smtp, port, "my-emailid-on that smtp","my password");
But when i run this in jboss application server then it is throwing an error as below:
javax.mail.AuthenticationFailedException: No authentication mechansims supported by both server and client
I also tried running it in jboss with null username and password
EmailWorkItemHandler emailHandler=new EmailWorkItemHandler(smtp, port,null,null);
then it is throwing below error:
com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Anonymous client does not have permissions to send as this sender
Pls tell me which username and password should i use and whether i need to do any configuration changes?
Retrieving data ...