Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Login denied when using curl to send emails using app password and access token in c++

Shreya
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 30, 2024

I am trying to send an email by using curl, but I am getting the error "Login Denied". I generated the app password as well as the oauth access token, but still getting the same error. Can someone guide me as to what's the issue. 


That's how I gave the app password and the access token:

curl_easy_setopt(curl, CURLOPT_PASSWORD, "APP_PASSWORD");

headers = curl_slist_append(headers, "Authorization: Bearer ACCESS_TOKEN");
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 3, 2024

Hey @Shreya ,

and welcome to the Community!

I'm not sure if I fully understand your question. Could you elaborate if you are trying to use any Bitbucket Cloud feature to send emails?

I ask this because our community primarily focuses on Bitbucket Cloud/Server questions, and we welcome any inquiries you might have. However, you’ll likely receive faster and more precise answers for queries related to Atlassian products here.

If your question is about a third-party tool, you might find it more beneficial to post directly in that tool’s dedicated forum or community. This way, you’ll have a better chance of getting an accurate and timely response.

Thank you, @Shreya !

Patrik S

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events