cancel
Showing results for 
Search instead for 
Did you mean: 

Mail not working in SAP Process Automation process

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos
  • I am able to setup my SMTP server with destination.
  • I am able to send a test email.
  • I am able to send emails in an automation using Alert Handlers.

But when I add a Mail node to my process, where I only have set up the email itself, that email is not sent and the process gets stuck at that node. No error is thrown, and the monitoring says it started but then nothing.

Is there something I need to do (besides setting up the SMTP destination and Mail Server) to make a Mail node work?

-------------------------

Here's my Alert that works fine and sends email.

Here's the Mail Server, which sends a test email.

But this Mail node does not work. What am I missing?

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Does the mail node in a process use the same mail destination and mail server that an alert would? Is there some other setting -- besides the email text -- that I have to set up? Is there some missing text that would cause the mail process to hang? Do I have set up something special?

And is the settings for the destination different than sending mail from an automation bot?

Accepted Solutions (1)

Accepted Solutions (1)

sunny_kapoor
Advisor
Advisor

Hi daniel.wroblewski,

Kindly set the "mail.bpm.send.disabled" to false in the Mail destination and then it will work.

Also please update your screenshot in the blog post as well.

Regards,

Sunny

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

I appreciate the response. I added the property but it did not work for me. Remember, I previously got emails without that property from RPA bots but now not getting from this SPA task.

Dan_Wroblewski
Developer Advocate
Developer Advocate

I apparently had to change 2 destination properties:

port = 587

mail.smtp.ssl.enable = false

---------------------------------

This is true even though for RPA having port 465 and mail.smtp.ssl.enable = true is perfectly fine and the Mail Server sends out test emails and RPA sends out emails within automations using Alerts. For some reason, SPA email function requires 587. I'll let the developers explain it further.

Thanks, Sunny for all your help 😊

Answers (2)

Answers (2)

rcaziraghi
Participant

Hello,

I had the same issue. I've made the changes posted here by daniel.wroblewski and it worked just fine. Here is how the configuration of the destination looks like now:

The "user" field and "mail.smtp.from" property both receive full e-mail accounts (with the @). Posting this here to make the configuration easier to copy if anyone has the same issue.

Thanks daniel.wroblewski for posting the fix!

s_schmidtke
Discoverer

Hello,

set an app password in your google account.

1. go to https://myaccount.google.com/ and sign in

2. panel security, app password

3. use the generated password in SAP Process Automation

If you use the port 587 set this properties:

- mail.smtp.ssl.checkserveridentity=false

- mail.smtp.ssl.enable=false

- mail.smtp.starttls.enable=true

- mail.smtp.starttls.required=true

king regards

Stefan

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

But I don;t understand ... my destination setup is what is being used for the successful test email, as well as for the email sent via Alert Handler ... how will this help me for the SPA Mail widget?

I already have an App password for the gmail account

ALEJONO
Participant
0 Kudos

Hi!

Thanks! Creating an app password on Google allowed me to send e-mails!

Kind regards,

Ale.