Skip to Content
-1

Not possible to configure Mail Task in SAP Workflow CP

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/5c7a8431ccbd4b83b74b277646987c9d.html?q=mail.smtp.from. 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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Posted on Oct 23, 2019 at 10:36 AM

    Hi,

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

    Regards

    Seshadri

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 23, 2019 at 11:48 AM

    check your host.

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

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 23, 2019 at 11:49 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • Posted on Oct 23, 2019 at 12:34 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • Posted on Oct 23, 2019 at 02:47 PM

    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


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.