on 10-23-2019 9:36 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
could you please set mail.smtp.ssl.checkserveridentity to true?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
check your host.
i tried to switch from gmail account to outlook account. It works fine for me with host smtp.office365.com
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Muniyappan,
Thanks for your reply.
Honestly, I tried both, but the result is the same.
Best regards,
Ilia
Hi,
Can you share the screenshot of your destination (hide any personal info)?
Regards
Seshadri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.