cancel
Showing results for 
Search instead for 
Did you mean: 

mail task error

elzhanms
Champ in-the-making
Champ in-the-making
Hello!

I am new in Activiti
I have some problems with mail tasks.

Computer configuration:
- win7 x64,
- jdk 1.8.0_11
- tomcat 7.0.55
- activiti 5.16

I attached:
- "activiti-standalone-context.xml" with mailServer configurations in processEngineConfiguration bean
- my sample bpmn process "simple-email-notification.bpmn20.xml"
- log-file of the tomcat window with the error message after I tried to start my process with email task

I have already checked smtp-server (smtp.mail.ru it is not local server) with telnet and I could setup connection with it. Ports 25 and 587 open, port 465 don't work correctly. But I couldn't send email by telnet. It gives me error 500 and 550, when I write "rcpt to: user@mail.ru".

What could be the problem?
Should I do other things (install local mail server independent from tomcat) to be able to send email tasks?

Thanks!
7 REPLIES 7

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

Were you able to send e-mail from smtp.mail.ru by another client app?
(You can try to use google mail server instead.)

Regards
Martin

Thank you for quick reply!

Yes, it's own client app works fine.
I also checked google mail server. I got the same error.

I think the problem is on my side.
The problem is that there is no any mail configuration guide, instead "Mail configuration" chapter in official userguide, which explains not all the aspects. And it's not inconceivable that possibly it is just some simple thing that is usually not written Smiley Happy

Regards
Elzhan

Now I successfully connected to smtp.mail.ru:465 with ssl in Outlook and could successfully send e-mail.
So I more than confident that problem in my side.

Regards
Elzhan

Should I configure JavaMail Sessions in tomcat?
Link:
http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html#JavaMail_Sessions

Thanks

elzhanms
Champ in-the-making
Champ in-the-making
I've tried all possible variants I know. I'm really nead ability to send e-mail notifications from business processes.
Please, help me. I need just direction where to search and study Smiley Happy

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

  1. have a look on org.activiti.engine.test.bpmn.mail.EmailSendTaskTest
  2. try to create jUnit test for your case and we can have a look on it. (http://forums.activiti.org/content/sticky-how-write-unit-test)
Regards
Martin

mig1
Champ in-the-making
Champ in-the-making
Hi,
I added an example of activiti.cfg.xml, which definitely works with my email provider gmx, please s. attachment. The file activiti.cfg.xml is deployed when deploying our application to the server.
There is also the same set of properties in activiti-standalone-context.xml, which is contained in activiti-explorer.war. I also maintained the properties there. The Activiti Explorer is always deployed to the server in our case, but I do not know whether it fits yours.
I am not a great expert, but this is what works.
Best regards,
MIG