Error 3 : "URL using bad/illegal format or missing URL" when sending a mail with php-curl in oauth2 authentification mode #145232
Unanswered
philprl
asked this question in
Programming Help
Replies: 1 comment
-
Hi @philprl Maybe there is a problem with encoding? In PHP there's
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
Greetings everyone,
I use a web server written in PHP 8.3 on apache 2.4 under Windows 10 on my local PC machine.
From this web server, I can send mails using php-curl version 8.4.0 (php_curl.dll library).
When sending the mail in basic authentification mode (login+password ESMTP) it works.
When sending the mail in oauth2 authentification mode (after receiving with success the token from the identity server oauth2) I have the following error 3 : "URL using bad/illegal format or missing URL".
Here, the following code in PHP :
In the apache24/logs/error.log file, I have :
Notice that :
When I send the mail also in oauth2 authentification mode with an application written in C langage using libcurl's curl_easy_*() fonctions with the same options, with the same SMTP server, same port 587 , on the same Windows 10 PC machine that works....
My web server application is well registered on Microsoft Azure identity server https://azure.microsoft.com/
At this time, I have not solved the problem, any idea ?
Best regards
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions