AnsweredAssumed Answered

Issue with sending email in Activiti

Question asked by aishusath on Jul 5, 2018
Latest reply on Jul 12, 2018 by bassam.al-sarori

Hi Team,

I am using Activiti BPMN 2.0. To send email, i have below configuration in activiti.config.xml file. 

the email box i am using here is authenticated email box. But i am getting below issue while triggering email. Please help me on this.

 

Configuration:

<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="dataSource" ref="dataSource" />
<property name="transactionManager" ref="transactionManager" />
<property name="databaseSchemaUpdate" value="true" />
<property name="mailServerHost" value= "<smtpa host>" />
<property name="mailServerPort" value="587" />
<property name="mailServerUsername" value="<email address>" />
<property name="mailServerPassword" value="<password>" />
<property name="mailServerUseTLS" value="true" />
<property name="mailServerUseSSL" value="false"/>

 

</bean>

 

Error:

Caused by: com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.60 SMTP; Client does not have permissions to send as this sender

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2202) ~[javax.mail-1.5.2.jar:1.5.2]
at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1980) ~[javax.mail-1.5.2.jar:1.5.2]
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1197) ~[javax.mail-1.5.2.jar:1.5.2]
at javax.mail.Transport.send0(Transport.java:254) ~[javax.mail-1.5.2.jar:1.5.2]
at javax.mail.Transport.send(Transport.java:124) ~[javax.mail-1.5.2.jar:1.5.2]
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1411) ~[commons-email-1.4.jar:1.4]

 

Thanks in advance!

Outcomes