cancel
Showing results for 
Search instead for 
Did you mean: 

Not possible to configure Mail Task in SAP Workflow CP

0 Kudos

Dear Experts, Gurus and anyone from the Community who was troubled by this situation.

I am trying to to configure Mail Task in Workflow on SAP Cloud Platform. It seems to me, that I have done everything correctly, using this instruction - https://help.sap.com/viewer/f85276c5069a429fa37d1cd352785c25/Cloud/en-US/5c7a8431ccbd4b83b74b2776469.... My bpmworkflowruntime_mail destination is perfectly configured.

But I am getting the following error:

"Could not send email: The server 'smtp-mail.outlook.com' could be reached, but the login with the given credentials failed. Verify that the credentials are valid for the server".

I tried different mail providers, but the picture is the same.

I have also read this - https://answers.sap.com/questions/460795/workflow-mail-task-can%27t-send-email-correctly-beca.html

The problem is exactly what I have, but those recommendations didn't help me at all...

Is there any way to somehow fix it? Maybe, I have to perform OAuth2 doing some code job in my Controller file?

It doesn't matter for me which mail provider it will be. I just really want my workflow to send mails 🙂

If anyone knows how to handle this, please, share your knowledge.

I haven't attached any screens, cause I am not sure that this will somehow help... But if it is needed, my pleasure to provide it.

Accepted Solutions (0)

Answers (5)

Answers (5)

0 Kudos

Dear all,

I am not sure that it can be a solution/ help / recommendation for anyone, but I will just describe how things got better and I have eventually started sending mails.

I don't know, but during all my tests I didn't pay much attention to my sender-mailbox. Today, I unintentionally opened it and revealed, that there were few unread letters from Microsoft:

******************************************************************************************************

Then I clicked "Review recent activity" and I could observe the following:

I had to choose something like "That was me" after what I was informed that Microsoft will try to get used to it.

And after this, I could start my workflow and Mail Task was working properly.

I'd like to say thank you to everyone for your help!

I don't know what to do with the "Best answer" stuff that's why I will just do nothing 🙂

Kind regards,

Ilia

Muniyappan
Active Contributor
0 Kudos

great to hear that you have made it work

Muniyappan
Active Contributor
0 Kudos

could you please set mail.smtp.ssl.checkserveridentity to true?

0 Kudos

Dear Muniyappan,

I have set up mail.smtp.ssl.checkserveridentity additional property for my bpmworkflowruntime_mail destination and set it to true.

I guess it could be better for the connection anyway.

Actually, I have succeeded with mailing. I will describe it more detailed in additional comment below.

Kind regards,

Ilia

Sesh_Sreenivas
Product and Topic Expert
Product and Topic Expert
0 Kudos

can you check the additional parameters where you have maintained the smtp server details twice. especially the mail.smtp.ssl.checkserveridentity. For simplicity, you can set that to false.

0 Kudos

Dear Seshadri,

I have set up mail.smtp.ssl.checkserveridentity additional property for my bpmworkflowruntime_mail destination. Could you, please, explain me how it could effect the connection/authorization process?

Actually, I have got good news about my connection. I will write additional comment where I will describe what good things happened 🙂

I very appreciate your help!

Kind regards,

Ilia

Sesh_Sreenivas
Product and Topic Expert
Product and Topic Expert
0 Kudos

The checkserveridentity is a smtp property to prevent man-in-the-middle attacks. It has nothing to do with authorization process, but setting it is true will verify if it is a valid server before setting up the connection. It can accept only Boolean values and in your screenshot, it wasn't.

0 Kudos

Dear Seshadri,

Thanks for the detailed answer!

What about my screenshot, there was other property - mail.smtp.ssl.trust. As it is explained in documentation, there suppose to be list of trusted hosts.

Now I memorized mail.smtp.ssl.checkserveridentity property - I decided do not set it up, because it's true by default if no value is provided 🙂

Best regards,

Ilia

Muniyappan
Active Contributor
0 Kudos

check your host.

https://support.office.com/en-us/article/pop-imap-and-smtp-settings-for-outlook-com-d088b986-291d-42...

i tried to switch from gmail account to outlook account. It works fine for me with host smtp.office365.com

0 Kudos

Dear Muniyappan,

Thanks for your reply.

Honestly, I tried both, but the result is the same.

Best regards,

Ilia

Sesh_Sreenivas
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Can you share the screenshot of your destination (hide any personal info)?

Regards

Seshadri

0 Kudos

Dear Seshadri,

Very appreciated for such a quick reply. Here is my destination screenshot.