Hello guys,
I just get an error like “Send Exchange Mail Message: The request failed. The remote server returned an error: (401) Unauthorized.” when I try to run my robot.
I’m using https://outlook.office365.com as a server.
How can I fix this? Thank you
lakshman
(Ganta lakshman)
November 19, 2019, 4:10am
2
@claudiojody
Are you providing proper credentials or not ?
Ajju
(Ajjayya Hiremath)
November 19, 2019, 5:09am
3
hi @claudiojody
for the office365 server use Exchange mail activity, for SMTP, server address
will be different (As per my understanding) so go with send exchange mail it works
Sorry, how can I know if I’m using proper credentials or not?
I’m using send exchange mail message
Ajju
(Ajjayya Hiremath)
November 19, 2019, 7:15am
6
Sorry i did not notice it
Ajju
(Ajjayya Hiremath)
March 3, 2020, 8:42am
7
hi @claudiojody
Have you find any solution for the above?
If not please use your email address as user name and windows password as Password,
or environment.username as username and windows password.
this will solve the problem.
i guess it is too late
suraj23
(Suraj)
July 7, 2020, 11:58am
8
I am fencing the same Issue
Send Exchange Mail Message: The request failed. The remote server returned an error: (401) Unauthorized.
I used Server: “https://outlook.office365.com/EWS/Exchange.asmx”
Password & UserId is correct
Ajju
(Ajjayya Hiremath)
July 7, 2020, 12:25pm
9
Hi @suraj23
How you are passing the username?
Try both the ways mentioned below
Username : email id
Example :
abcd@organisation.com
2 username : domain\username
STLIPL\abcd
suraj23
(Suraj)
July 8, 2020, 6:00am
10
Hi @Ajju
Thanks for suggestion, but it’s not working, giving same error
Send Exchange Mail Message: The request failed. The remote server returned an error: (401) Unauthorized.
Ajju
(Ajjayya Hiremath)
July 8, 2020, 8:40am
11
can you share a screenshot how you passing the credential (just for reference),
also can you check is there any particular sever address for exchange mail server in your org,
for me i have a different exchange mail server address and i cannot use " https://outlook.office365.com/EWS/Exchange.asmx” "
my exchange server address is somthinng like below
https://mail.myorg123.com/esd23/exchange.asmx