cancel
Showing results for 
Search instead for 
Did you mean: 

Mail task Activiti 6.0

ngocnguyn13
Champ in-the-making
Champ in-the-making

Hi,

I am new to Activiti, and I'm trying to use a mail task but it fails. Can someone please help me?

I add these codes in activiti-custom-context.xml:

<property name="mailServerHost" value="smtp.gmail.com"/>
<property name="mailServerPort" value="465"/>
<property name="mailServerUseTLS" value="false"/>
<property name="mailServerUseSSL" value="true"/>
<property name="mailServerDefaultFrom" value="myemail@gmail.com"/>
<property name="mailServerUsername" value="myemail@gmail.com"/>
<property name="mailServerPassword" value="*******************"/>


and these in engine.properties

# email properties
engine.email.enabled=true
engine.email.host="smtp.gmail.com"

email.port=465

email.useCredentials=true

email.username=myemail@gmail.com
email.password=******************

email.base.url=http://localhost:8080/activiti-app

email.from.default=myemail@gmail.com

email.from.default.name=myemail@gmail.com

 

and I use Gmail app password, not my actual password, since Beginning September 30, 2024: third-party apps that use only a password to access Google Accounts and Google Sync will no longer be supported. I use Gmail app password and hope that it could make the mail task work, but it didn't.

 

This is how it turned out:

Ảnh chụp màn hình 2024-10-24 005400.png


Can someone please show me what I did wrong and how to fix it.

Best regards,

Ngoc.

1 REPLY 1

ngocnguyn13
Champ in-the-making
Champ in-the-making

The photo was a bit blurry so I paste it again here

 

Ảnh chụp màn hình 2024-10-24 005400.png